Can anyone show me the algorithm to perform bi-cubic interpolation of an image?
1 次查看(过去 30 天)
显示 更早的评论
I need to determine bi-cubic interpolation of an image. Please show me how it is done.
采纳的回答
KSSV
2018-11-1
I = imread('cameraman.tif') ;
[nx,ny] =size(I) ;
[X,Y] = meshgrid(1:ny,1:nx) ;
x = linspace(1,nx,500) ;
y = linspace(1,ny,500) ;
[Xi,Yi] = meshgrid(x,y) ;
I1 = interp2(X,Y,double(I),Xi,Yi) ;
imshow(uint8(I1)) ;
Also have a look on imresize
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolating Gridded Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!