How to get all xy coordinates within a connected polygon.?

조회 수: 2 (최근 30일)
Nithya
Nithya 2014년 2월 13일
답변: Image Analyst 2014년 2월 13일
I have a polygon using impoly on an image.Is it possible to get all the pixel coordinates within that polygon.

답변 (1개)

Image Analyst
Image Analyst 2014년 2월 13일
allPixels = grayImage(maskImage); % 1D vector of all the pixels inside the mask only.

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by