Extract 2D region of interest from 3D image stack

Merge first two dimensions in a higher dimensional array and only analyze only pre-index values.

Ahora está siguiendo esta publicación

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 (2026). Extract 2D region of interest from 3D image stack (https://la.mathworks.com/matlabcentral/fileexchange/59907-extract-2d-region-of-interest-from-3d-image-stack), MATLAB Central File Exchange. Recuperado .

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.1.0.0

Modified example and front picture to clarify code function.
Changed file description

1.0.0.0

Added usage example.