필터 지우기
필터 지우기

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
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 CenterFile Exchange에서 Interpolating Gridded Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by