error with imrotate
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Walter Roberson
el 22 de Feb. de 2011
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.
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!