필터 지우기
필터 지우기

How can get of Error using resample (line 93) Not enough input arguments. Error in Untitled (line 12) d=extract(​resample,r​ot,size(b,​1/2));

조회 수: 1 (최근 30일)
a=imread('objphase.jpg');
b=imread('calphase.jpg');
c=b-91;
c(c<0)=0;
c(1:end,:)=c(end:-1:1,:); % flip the image
cat(3,a,c)
rot = imrotate(c,45.5*pi/180),[0.8437 0.8437],[-13 5]
d=extract(resample,rot,size(b,1/2));
e=extract(a,size(b,1/2));
cat(3,e,d) % This is a pretty good pre alignment. So now FAIR can do the rest...
useCuda=0;
if (useCuda)
e=cuda(e);
d=cuda(d);
enableCuda();
%set_zeros_cuda(1);
%set_ones_cuda(1);
%global zeros; zeros=@(varargin) zeros_cuda(varargin{:});
%set_rand_cuda(1);
end
Hey I am very New to the programming. I get a error as below please help me out
Thanks in Advance
Error using resample (line 93)
Not enough input arguments.
Error in Untitled (line 12)
d=extract(resample,rot,size(b,1/2));
  댓글 수: 3
Raviteja Kurva
Raviteja Kurva 2019년 1월 17일
Even i dont know that exactly, i have given pervious program for one task in my Thesis. So that i should run that program so that i will get the values
Walter Roberson
Walter Roberson 2019년 1월 17일
We do not have your function named extract so it is difficult for us to predict how it is intended to be called.
You could try
d = extract(@resample, rot, size(b,1)/2);
e = extract(a, size(b,1)/2);
but I would not be surprised if it fails.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Scope Variables and Generate Names에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by