Connecting labelmatrix and regionprops Pixel indices

1 view (last 30 days)
Hi all,
I have a list of 200-250 objects in a 512 x 512 image. I used bwconncomp to build a labelmatrix and also watershed and regionprops to measure the properties of the objects.
The properties table from regionprops provides each object's pixel indices in the 512 x 512 image.
How do I connect an object detected by regionprops/watershed with its corresponding label and location in the labelmatrix?
I am attaching examples of the labelmatrix and image files, as well as the output of regionprops.
Thanks a ton for your help!

Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!