Algorithm of Bicubic Interpolation
이전 댓글 표시
I am trying to recreate the matlab bicubic interpolation function in java. In matlab, I use interp2(...., 'cubic') and I am trying to write a program that does the exact same thing in java. I have basically tried to follow wikipedia's formula for it. The data that I am getting from my java program is close to matlab's, but slightly off. Does anyone know the actual formula for bicubic interpolation that is used by matlab's cubic interp2 function?
채택된 답변
추가 답변 (2개)
Are you sure you're not re-inventing the wheel? What about this:
You can also try corroborating your/MATLAB's spline interpolation against Example1.m and Example2.m from here
It uses an entirely different approach from INTERP2, so it should be useful as an independent comparison.
댓글 수: 2
Alex Taylor
2013년 6월 5일
If the data being passed to interp2 is uniformly spaced, the algorithm is bicubic interpolation based on a cubic convolution kernel, not cubic spline interpolation.
Matt J
2013년 6월 5일
Ah, I see. Well, the FEX file lets you choose the kernel, so you could apply it the cubic convolution kernel as an additional test as well. It wouldn't be as distinct from INTERP2 as in the case of 'spline' interpolation, but it is somewhat distinct.
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!