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));

2 views (last 30 days)
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 Comments
Raviteja Kurva
Raviteja Kurva on 17 Jan 2019
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 on 17 Jan 2019
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.

Sign in to comment.

Answers (0)

Categories

Find more on Scope Variables and Generate Names in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!