error with imrotate
조회 수: 4 (최근 30일)
이전 댓글 표시
I have an older version of matlab (ver 7.8.0 R 2009a).
Previously imrotate worked perfectly, however, now I get the following error message when trying to rotate an arbitrary square matrix:
??? Undefined function or method 'tform' for input arguments of type 'struct'.
Error in ==> tformfwd at 68 varargout = tform('fwd', nargout, varargin{:});
Error in ==> imrotate at 132 hiB = ceil(max(abs(tformfwd([loA(1) hiA(2); hiA(1) hiA(2)],rotate)))/2)*2;
very strange, I may send an email to mathworks.
댓글 수: 0
답변 (1개)
Walter Roberson
2011년 2월 22일
Use
which -all tform
to see if you can find tform.m . If I have tracked the hints, it should be private method under the image processing toolbox.
I notice you are passing in "rotate" as the second argument to tformfwd(). As your first argument is obviously a two column vector, it would seem that you are using the unusual variant call tformfwd(U,T) whereas all the other forms need T first, including the more common tformfwd(T,U) . I am concerned about your use of "rotate" as a variable name, as "rotate" is the name of a Matlab function, and Matlab can get confused about function vs variable at times. On the other hand, if that were the problem here, then as rotate() the function does not document any return parameters, I would expect instead an error about "too many output arguments".
The error message you are getting is consistent with tform.m (or tform.p) having gone missing somehow even though other parts of the image processing toolbox appear to be there.
Still, I would rename the variable to avoid confusion.
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!