How to use bwlabel or regionprops with cellfun ?

3 views (last 30 days)
Hi, I have an image divided into small blocks using mat2cell. Now i want to perform bwlabel on each block(cell). bwlabel doesn't accept cell as input. So how do i do it? I need to find particles in each of these blocks ! Thank you

Accepted Answer

Image Analyst
Image Analyst on 11 Aug 2015
Is the image already a binary image? A block is a small image and bwlabel() will work on a small image. Why not use blockproc() instead? I've attached two examples.
  7 Comments
Image Analyst
Image Analyst on 11 Aug 2015
We don't have internet up there yet so it will be sporadic. I will come home in a day or two and go back and forth a bit (it's 90 minute drive away) over the next week or so. In the meantime, if you get stuck, attach any m-file and data or images that would be needed to run your script.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!