What is the difference between IMWARP and IMTRANSFORM?
Show older comments
I just installed Matlab 2013a with the image processing toolbox. It has a new function IMWARP. It is very similar to the existing IMTRANSFORM function when performing 2D transformations on an image. I performed the same transformation on an image using both IMWARP and IMTRANSFORM. IMWARP is significantly faster (2X to 3X). I compared both images and they gave similar, but not exactly the same results. Also each function uses a difference version of the TFORM object. I was wondering is someone can describe the differences and advantages between these two functions.
2 Comments
Aijun Zhu
on 6 Jul 2015
My main sense of the difference btwn the two is that, one is working on as [1 2 3] matrix dimension-oriented and the other is working on as [1 3 2]. Right?
testhack testhack
on 29 Jun 2020
test
Accepted Answer
More Answers (1)
Nikolay S.
on 30 Jul 2014
Edited: Nikolay S.
on 30 Jul 2014
0 votes
Hi Alex.
Very interesting answer, I was pretty confused by seeing a few commands doing virtually the same. A few questions aroused:
1) I understand that new functions (IMWARP etc..) and the old functions (IMTRANSFORM) differ in the point of application- for example rotation. In the new ones it is image center while in the old ones it is top left corner. Thus for the same T matrix, different image tranformation will be achieved. The question is, is there an easy and precise way to calculate Tnew, that will achieve the same transformation with IMWARP as Told achieved with IMTRANSFORM? This may be a decent replacement to the wrapper Eric mentioned.
2) I understand that the new transformation functions are much faster (factor of x2, x3). FOrm what I can see, it supports however only linear (affine & projectile) transformation represented by T [3,3] of [4,4] matrix. On the other hand, IMTRANSFORM, MAKETFORM support non linear transformation, as Steve has demonstrated on his wizard image. Is this correct? If so, the optimization comes with a price of loss of generality, and MAKETFORM can not be removed, as projective2d, affine2d replace it only in case of linear transformations.
Thanks!
Categories
Find more on Generic Geometric Transformations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!