Imrotate in clockwise direction
显示 更早的评论
I have a binary image 'II1'. I want to rotate this image in clockwise direction and find the indices in particular column of the image. so i used imrotate(II1,-theta) (theta is angle i specified - 6.54) While doing so i am finding errors -
??? Error using ==> mtimes Out of memory. Type HELP MEMORY for your options.
Error in ==> maketform>trans_affine at 226 U1 = X1 * M; % Transform in homogeneous coordinates
Error in ==> maketform>inv_affine at 192 U = trans_affine(X, t, 'inverse');
Error in ==> maketform>inv_composite at 592 U = feval(t.tdata(i).inverse_fcn, U, t.tdata(i));
Error in ==> tform at 56 X = feval( t.(f.fwd_fcn), U, t );
Error in ==> tforminv at 68 varargout = tform('inv', nargout, varargin{:});
Error in ==> tformarray at 241 M = tforminv(G,T);
Error in ==> imrotate at 155 B = tformarray(A, T, R, [1 2], [1 2], outputSize, [], 0);
Error in ==> test_2 at 132 rot_im2 = imrotate(rot_ad_im2,-theta);
Could anyone tell me why i am getting these errors?? I found it is working some times and some times it is giving errors. The Image that i am working on is uploaded in below link
3 个评论
David Sanchez
2013-5-29
How big is your image? It seems you machine is running out of memory to perform the intermediate steps required by the algorithm. Did you try the example given in the help (help imrotate) ? If this example works fine every time ( it uses a small image ), think about halting some hidden processes from your machine.
Divya
2013-5-29
Divya
2013-5-29
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Images 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!