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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!