Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Projective Transforms from an image to another image

Status
Not open for further replies.

someone222

Computer
Joined
Sep 22, 2006
Messages
1
Location
US
Hi,
I am quite new to Matlab. I am trying to do a projective transform from one image to another.

I could load the image
I = imread('img1.pgm');

Then created the projective matrix
h= [ a b c; d e f; g h i];
^ this is a projective transform matrix

Then created the transform
tform = maketform('projective',h);

Now what should I do next? I tried
J = imtransform(B,tform)

But I ended up with just
J = [0 0 ; 0 0]

Even though I was pretty big (800*600)

What am I doing wrong?

Thank you very much in advance

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top