How can get of Error using resample (line 93) Not enough input arguments. Error in Untitled (line 12) d=extract(resample,rot,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
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 Center 및 File 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!