Select image region using point coordinates
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Matt J
am 16 Apr. 2021
regions=regionprops(yourImage,'PixelList');
detector=@(s) ismember([x,y], s.PixelList,'rows');
find( arrayfun( detector , region ) )
1 Kommentar
Alejandro Fernández
am 16 Apr. 2021
Kategorien
Mehr zu Region and Image Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!