Bug in imrotate.m?

조회 수: 1 (최근 30일)
Aaron Sigut
Aaron Sigut 2015년 5월 12일
댓글: Image Analyst 2015년 5월 13일
I am trying to rotate a square image by 20 degrees but imrotate crashes with an error in padarray. The test function is
function test_imrotate
x=-5:0.05:5;
y=-5:0.05:5;
[X,Y]=meshgrid(x,y);
G=exp(-X.^2-(3.*Y).^2);
G20=imrotate(G,20);
and this will give
>> test_imrotate
Error using padarray Too many input arguments.
Error in imrotate (line 140) A = padarray(A,[2 2],0,'both');
Error in test_imrotate (line 7) G20=imrotate(G,20);
I am running 8.5.0.197613 (R2015a) under Linux ubuntu 14.04LTS.
  댓글 수: 3
Ashish Uthama
Ashish Uthama 2015년 5월 13일
Try a which -all padarray, maybe you have a different version shadowing the toolbox?
Image Analyst
Image Analyst 2015년 5월 13일
Runs on R2015a under Windows 7, 64 bit with no problem.

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

답변 (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