Identify Individual Shape from Matrix Representing Multiple Shapes
古いコメントを表示
Hi all,
I have a matrix which represents multiple shapes. (Picture an image with a black background and several white circles on it.) The black part of the image is represented by NaN's, while the white circles or shapes are represented by numbers. I have created a random rectangle, which essentially serves as a bounding box, and I would like to see which specific circle/shape falls within the boundaries of the rectangle. The circles/shapes are well spread apart, so only one circle/shape will fulfill the boundary requirement. How could I identify only the one shape that has some part of itself in the rectangle while ignoring the other shapes? In other words, how could I isolate the shape and create a new matrix with only the shape that fulfills my requirement? I would then have to apply this same method to other matrices representing more shapes while keeping the location of the rectangular bounding box the same.
Any tips would be greatly appreciated! Thanks in advance!
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Semantic Segmentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!