What is the difference between IMWARP and IMTRANSFORM?
古いコメントを表示
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 件のコメント
Aijun Zhu
2015 年 7 月 6 日
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
2020 年 6 月 29 日
test
採用された回答
その他の回答 (1 件)
Nikolay S.
2014 年 7 月 30 日
編集済み: Nikolay S.
2014 年 7 月 30 日
0 投票
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!
カテゴリ
ヘルプ センター および File Exchange で Generic Geometric Transformations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!