Extract 2D region of interest from 3D image stack
This code merges the first two dimensions of a higher dimensional array (e.g. an image stack) into a single dimension. The difference to a simple reshape is that the output matrix only contains selected pixels in a region of interest (ROI) by using a 2D logical index (e.g. from thresholding a single image). The reduced matrix only contains the values of interest to increase analysis speed and reduce data size. Lastly, the original data structure can be recovered after analysis. When reconstructing, all values that were not part of the initial ROI are recreated as NaNs.
Citar como
Simon Musall (2024). Extract 2D region of interest from 3D image stack (https://www.mathworks.com/matlabcentral/fileexchange/59907-extract-2d-region-of-interest-from-3d-image-stack), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > ROI-Based Processing >
- MATLAB > Graphics > Images > Read, Write, and Modify Image >
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.