필터 지우기
필터 지우기

How can I get nearest, bilinear and bicubic to the imtransform function?

조회 수: 3 (최근 30일)
Thales Ferreira
Thales Ferreira 2016년 3월 16일
댓글: Muhammad Usman Saleem 2016년 3월 17일
Different methods of the interpolation. I have an image. How can I get nearest, bilinear and bicubic to the imtransform function/
  댓글 수: 2
Thales Ferreira
Thales Ferreira 2016년 3월 16일
편집: Thales Ferreira 2016년 3월 16일
I have this code:
im = imread('Car.tif');
a = 0.50;
T = imtransform(im,maketform('affine', [1 0 0; a 1 0; 0 0 1] ));
xi = 0:.25:10;
B = interp1 (im, T , xi,'nearest');
subplot (2,2,1), imshow(im);
subplot (2,2,2), imshow(B);
title('Nearest Interpolation');
And error are:
Error using interp1>parseValuesV Values V must be of type double or single.
Error in interp1 [V, orig_size_v] = parseValuesV(varargin{2});
Error in Asgt3q5 B = interp1 (im, T , xi,'nearest');
How can I solve this?
Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 3월 16일
편집: Muhammad Usman Saleem 2016년 3월 16일
please format this code and edit your question then i can help!

댓글을 달려면 로그인하십시오.

답변 (1개)

Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 3월 16일
편집: Muhammad Usman Saleem 2016년 3월 16일

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by