Bicubic Interpolation Algorithm of imrotate

조회 수: 3 (최근 30일)
Leoluca Tinzmann
Leoluca Tinzmann 2021년 8월 19일
댓글: yousef riyazifar 2024년 6월 3일
Hello,
does anyone know the exact code for the bicubic interpolation algorithm used in imrotate()? I am currently rewriting a matlab script containing this function into a cuda mex file. My current implementation produces small differences between the matlab rotated images and the images I rotate. Is it the algorithm mentioned in this paper?
Thanks for your help
  댓글 수: 1
yousef riyazifar
yousef riyazifar 2024년 6월 3일
Hvae you wite this code? can I have a copy of it?

댓글을 달려면 로그인하십시오.

채택된 답변

Kshitij Chhabra
Kshitij Chhabra 2021년 10월 13일
Hi Leoluca,
From my understanding of the question, you are trying to find the exact code which is used to perform the bicubic interpolation in “imrotate” function of MATLAB. “imrotate” uses the same algorithm as followed by the paper in the MATLAB Answer link that you have attached:
R. Keys, "Cubic convolution interpolation for digital image processing," in IEEE Transactions on Acoustics, Speech, and Signal Processing, vol. 29, no. 6, pp. 1153-1160, December 1981, doi: 10.1109/TASSP.1981.1163711.
Also, as a sidenote, “imrotate” already supports GPU Code generation and you can directly use that for your application.
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by