Piecewise Polynomial (pp) for Bicubic Interpolation
Ältere Kommentare anzeigen
Hi, The piecewise polynomial (pp) for a cubic or spline interpolant is extremely easy to obtain by the formula:
pp = interp1(x,Y,method,'pp') where the piecewise polynomial gets stored in 'pp'.
But when we go for interpolation in 2 dimensions using interp2 function, there is no way I can get the 'pp' form of the bicubic interpolant. I need the bicubic interpolation function in Image Processing for implementing few Digital Image Correlation algorithms, as I need the continuous gray function for the 8-bit Tiff Images (usual resolution in the range of 300*300) to further get the derivatives of the function (which is not possible if I don't have the 'pp').
Please help me coz I am bugged quite bad right now, and my project has been freezed just because of this shortcoming :(
Any help/hint even from spline toolbox is acceptable too. Thanks in advance.....
Antworten (1)
Andrew Newell
am 13 Jun. 2011
0 Stimmen
MATLAB hasn't implemented multidimensional polynomials, and there doesn't seem to be anything in the File Exchange. However, if what you really need is derivatives, why not use gradient?
2 Kommentare
sudhir sharma
am 13 Jun. 2011
Andrew Newell
am 13 Jun. 2011
The function GRADIENT is designed to work on a discrete set of data using finite difference formulae. It's not really so different from using splines. Instead of fitting the data to cubic polynomials, it approximates neighboring points by Taylor expansions and then combines them to estimate the derivatives.
Kategorien
Mehr zu Interpolation finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!