How can I find the location of the pixels between adjacent regions.
Show older comments
Dear all, I segmented an image using watershed and got the Label matrix. I've already found the neighbors of each region using graycomatrix. My problem is that I would like to find the location of the pixels between each pair of adjacent regions. Using bwboundaries and bwperim give all the pixel locations of each region. I just want to get the locations of the pixels situated between each adjacent regions. Thanks
Accepted Answer
More Answers (1)
Use intersect(...,'rows') on the data returned from bwboundaries to get the intersection of the sets of boundary pixels for 2 regions.
Categories
Find more on Display 2-D Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!