Piecewise Polynomial (pp) for Bicubic Interpolation
古いコメントを表示
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.....
回答 (1 件)
Andrew Newell
2011 年 6 月 13 日
0 投票
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 件のコメント
sudhir sharma
2011 年 6 月 13 日
Andrew Newell
2011 年 6 月 13 日
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.
カテゴリ
ヘルプ センター および File Exchange で Interpolation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!