필터 지우기
필터 지우기

Why bwboundaries with roipoly change the size of a rectangle?

조회 수: 1 (최근 30일)
Meshooo
Meshooo 2014년 3월 24일
편집: Meshooo 2014년 3월 25일
Dear all,
Could anyone tell me why the size of rectangle is changed?
x = [4 10 10 4 4];
y = [4 4 10 10 4];
BW = poly2mask(x,y,20,20); %binary image that contains a small rectangle
B = bwboundaries(BW);
b = B{1};
X = b(:, 1);
Y = b(:, 2);
hpoly = roipoly(BW,Y,X);
figure, imshow(BW)
figure, imshow(hpoly)
Any idea will be appreciated.
Best, Meshoo

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by