Select image region using point coordinates
古いコメントを表示
Hi, I was wondering if someone could do quickly and efficiently the selection of a region within the multiple ones that matlab manages to detect using the regionprops function in whose interior is a point that is defined by its x and y coordinates.
採用された回答
その他の回答 (1 件)
Matt J
2021 年 4 月 16 日
regions=regionprops(yourImage,'PixelList');
detector=@(s) ismember([x,y], s.PixelList,'rows');
find( arrayfun( detector , region ) )
カテゴリ
ヘルプ センター および File Exchange で Region and Image Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!