Borrar filtros
Borrar filtros

help me plz

4 visualizaciones (últimos 30 días)
lama riad
lama riad el 2 de Feb. de 2012
Editada: Matt J el 27 de Sept. de 2013
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 comentarios
Walter Roberson
Walter Roberson el 2 de Feb. de 2012
Please edit the title to something relevant to the topic.
lama riad
lama riad el 3 de Feb. de 2012
rotation,scale,translation all in one image

Iniciar sesión para comentar.

Respuesta aceptada

Wayne King
Wayne King el 2 de Feb. de 2012
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.
  1 comentario
lama riad
lama riad el 3 de Feb. de 2012
you are right the error in the resizing but I don't know what 2 do

Iniciar sesión para comentar.

Más respuestas (2)

lama riad
lama riad el 2 de Feb. de 2012
ok, can u help me solving that?
  2 comentarios
Walter Roberson
Walter Roberson el 2 de Feb. de 2012
What is your desired end result?
lama riad
lama riad el 3 de Feb. de 2012
my desired result is rotated,scaled, and translated image

Iniciar sesión para comentar.


fjnb86
fjnb86 el 3 de Feb. de 2012
dont forget to put next time a title describing ur topic ;)
  1 comentario
lama riad
lama riad el 3 de Feb. de 2012
ok,sorry 4 that....I'll try not 2 do this fatal mistake in future :-P

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by