Effacer les filtres
Effacer les filtres

Can anyone show me the algorithm to perform bi-cubic interpolation of an image?

1 vue (au cours des 30 derniers jours)
I need to determine bi-cubic interpolation of an image. Please show me how it is done.
  2 commentaires
Avinash Bhatt
Avinash Bhatt le 1 Nov 2018
Sir, can you please show a demo by using interp2?

Connectez-vous pour commenter.

Réponse acceptée

KSSV
KSSV le 1 Nov 2018
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

Plus de réponses (0)

Catégories

En savoir plus sur Interpolating Gridded Data dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by