Error using imwarp (line 33)
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
I have tried to use imwarp function simply on example from documentation - Apply Horizontal Shear to Image. But it is still returning me: Error using imwarp (line 33), Invalid input transformation. What I am doing wrong? I have Matlab 2013a.
close all, clear all;
I = imread('cameraman.tif');
tform = affine2d([1 0 0; .5 1 0; 0 0 1]);
J = imwarp(I,tform);
figure, imshow(I), figure, imshow(J)
Respuestas (3)
Image Analyst
el 3 de Nov. de 2013
0 votos
I have R2013a and I copied and pasted your code and it worked fine. Attach your file. You didn't give all your code because imwarp() is not on line 33 like your partial error message says, so you obviously neglected to give all your code. Also you forgot to give the error message. Like far too many people, you snipped out a small part of the error message and didn't give use ALL the red text that you have. Not sure why you did that but make it easy for us to help you by giving us all the information that you have, not just part of it.
Alex Taylor
el 3 de Nov. de 2013
In addition to the error message, can you please provide the output of:
which -all affine2d
Adam
el 5 de Nov. de 2013
3 comentarios
Image Analyst
el 5 de Nov. de 2013
You forgot to attach TestImwarp.m so we don't know how you called imwarp().
Adam
el 5 de Nov. de 2013
Adam
el 5 de Nov. de 2013
La pregunta está cerrada.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!