フィルターのクリア

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