help me plz
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I want to display all i did for the image (translation, scale, and rotation) but error is still appearing. Can any body help me :'(
this is the code i did:
I=imread('cameraman.jpg');
deg = -30;
I2 = imrotate(I, deg, 'bilinear', 'crop');
J=imresize(I,[900 900],'nearest');
T = [1 0 0; 0 1 0;70 70 1];
tform_translate = maketform('affine', T);
[I3,xdata,ydata] = imtransform(I,tform_translate);
all=I3+I2+J;
imshow(all)
2 件のコメント
採用された回答
Wayne King
2012 年 2 月 2 日
You cannot resize the image and then add it to versions which are not resized.
Matrix addition is only defined for matrices of the same size.
I'm assuming that is your error since you do not give us the error you are getting.
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!