Finding area of continuous values in a matrix
Show older comments
Hi there,
I have binary matrices (about 50 x 50 but this size changes) and I want to quantify the size of fields/blobs/islands in these matrices.
I really need a script that takes an X and Y co-ord (coordinates of previously identified peaks if anyone is interested) or a row and column if you prefer to think of it that way, and then counts the number of continuous/contiguous 1's around that co-ordinate.
The blobs are not always round, they may be L shaped or otherwise irregular.
If it could output the X and Y co-ordinates of every number it has counted that would also be helpful... but not crucial.
Thank you very much for any help,
Rod.
1 Comment
José-Luis
on 22 Mar 2013
What have you tried so far?
doc bwconncomp
Accepted Answer
More Answers (0)
Categories
Find more on Region and Image Properties in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!