process a large stack of 2-d images

how is it possible to use bwconncomp or in general process a stack of 2000 images with the size of 2000x2000, I dont think block processing would work in this case..

回答 (1 件)

Matt J
Matt J 2013 年 3 月 9 日

0 投票

bwconncomp will accept a 3D stack directly. You can specify 2D connectivity with the conn argument.

7 件のコメント

B
B 2013 年 3 月 9 日
but the problem is the size of images, I cant make the matrix from images
Matt J
Matt J 2013 年 3 月 9 日
If it's a memory limitation, then why not just for-loop over the images, reading in and processing one at a time.
B
B 2013 年 3 月 9 日
Yes, it is. But the purpose is to extract 3d morphological information for example doing 3d bwconncomp
Matt J
Matt J 2013 年 3 月 9 日
Is the BW array sparse?
B
B 2013 年 3 月 9 日
some slices yes, some not,just like slices of a sphere, in center the values are mostly 1 but on top or bottom ends are mostly 0
Matt J
Matt J 2013 年 3 月 10 日
編集済み: Matt J 2013 年 3 月 10 日
I meant, how sparse is BW as a volume? In other words, what is
density = nnz(BW)/2000^3
I assume you don't have enough memory to hold BW as a volume, but the density is something you could easily calculate by looping over the slices. If BW is not sparse (low density), you might not even have enough memory to hold the result of the connectivity map.
B
B 2013 年 3 月 12 日
編集済み: B 2013 年 3 月 13 日
In fact I was able to modify the problem to get a less dense matrices, the whole information are now stored in two 1800*1800*811 matrices with densities of 0.0257 and 0.0215, Now how can I merge all information in one matrix to use bwconncomp...

サインインしてコメントする。

質問済み:

B
B
2013 年 3 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by