필터 지우기
필터 지우기

When I crop image Width and Height is decrease

조회 수: 2 (최근 30일)
Adisorn Phanukthong
Adisorn Phanukthong 2017년 2월 17일
댓글: Image Analyst 2017년 2월 20일
I attach a file code and picture. before use imcrop Width and Height are decrease. it not real value
Please help me

답변 (1개)

Walter Roberson
Walter Roberson 2017년 2월 17일
The line
[columns, rows] = find(BW);
should be
[rows, columns] = find(BW);
  댓글 수: 9
Walter Roberson
Walter Roberson 2017년 2월 17일
Put a breakpoint on the line that calls imcrop. Record the workspace contents. Then give the command
dbstep
at the command line so that imcrop is called. Record the workspace content again. Show us both workspaces.
Image Analyst
Image Analyst 2017년 2월 20일
Adisorn, I have no idea what you're doing but of course if you crop an image to be smaller than it is, of course it will be smaller than before the crop. Also, it two images have different bounding boxes, of course they will be different sizes after cropping. Are you expecting anything different?

댓글을 달려면 로그인하십시오.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by