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!