From: Victor Lee on
Hi,

Need a little help in image transformation. I've acquired my six-parameter affine coef and created a transformation matrix using maketform. I know I can use the imtransform to warp my image(forward warping) then but how do I perform an backward warping?? Correct me if I get any theory wrong.

th =
0.8038 0.0054 0
0.1223 0.9398 0
-11.7433 7.4572 1.0000

MF = maketform('affine',th);
img1 = imtransform(img, MF);

Thanks
Victor
From: Steve Eddins on
Victor Lee wrote:
> Hi,
>
> Need a little help in image transformation. I've acquired my
> six-parameter affine coef and created a transformation matrix using
> maketform. I know I can use the imtransform to warp my image(forward
> warping) then but how do I perform an backward warping?? Correct me if I
> get any theory wrong.
>
> th =
> 0.8038 0.0054 0
> 0.1223 0.9398 0
> -11.7433 7.4572 1.0000
>
> MF = maketform('affine',th);
> img1 = imtransform(img, MF);
>
> Thanks Victor

Try using fliptform.

---
Steve Eddins
http://blogs.mathworks.com/steve/
From: Victor Lee on
Steve Eddins <Steve.Eddins(a)mathworks.com> wrote in message <hmljpm$cdh$1(a)fred.mathworks.com>...
> Victor Lee wrote:
> > Hi,
> >
> > Need a little help in image transformation. I've acquired my
> > six-parameter affine coef and created a transformation matrix using
> > maketform. I know I can use the imtransform to warp my image(forward
> > warping) then but how do I perform an backward warping?? Correct me if I
> > get any theory wrong.
> >
> > th =
> > 0.8038 0.0054 0
> > 0.1223 0.9398 0
> > -11.7433 7.4572 1.0000
> >
> > MF = maketform('affine',th);
> > img1 = imtransform(img, MF);
> >
> > Thanks Victor
>
> Try using fliptform.
>
> ---
> Steve Eddins
> http://blogs.mathworks.com/steve/

Thanks Steve. I've tried it. How do I use the inverse function for the 'maketform' function? MATLAB help does says it has but no examples how to apply it.

Thanks