I have a set of (x,y) coordinates that enclose a irregular shape, I want to extract all the points that are inside that particular region. How should i approach this.
이전 댓글 표시
Basically I have an image in which I have marked certain regions, I want to know about all the points inside that region.
채택된 답변
추가 답변 (1개)
Image Analyst
2015년 10월 17일
If you want the pixel values, then you can do
mask = poly2mask(x, y, rows, columns);
pixelValues = grayImage(mask);
If you want other things, like the area of the shape, then see my Image Processing Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
카테고리
도움말 센터 및 File Exchange에서 Biomedical Imaging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!