Extract 2D region of interest from 3D image stack

版本 1.1.0.0 (3.1 KB) 作者: Simon Musall
Merge first two dimensions in a higher dimensional array and only analyze only pre-index values.
101.0 次下载
更新时间 2016/11/12

查看许可证

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.

引用格式

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. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

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

1.0.0.0

Added usage example.