29
Appendix III
‘ILCprocess.m’
clear;
k = 0;
while(k < 3)
%starting point search model name:
mn = 'point';
FrameCapt; %Initialize camera
pause(1);
Acquire; %Take the first picture
oldImage = newImage; %Saves taken image to the pathImage
if(k == 0)
y_dir = 4; %remove these, when you have destination point functions
y_deg = 5;
x_dir = 4;
x_deg = 5;
%SetDestinationPoint(newImage) % Define starting point and destination
point from
% picture and set parameters for model
% (x_dir, x_deg, y_dir, y_deg)
wc_build(mn) % let's build with new parameters
end
wc_start(mn)
pause(1);
while(wc_isrunning(mn))
pause(1);
end
wc_stop(mn);
Acquire; %Take picture at the end
savePath;
oldImage = pathImage;
%figure;
%imshow(pathImage);
%DefineError(pathImage) % Define error of destination point
%SetDestinationPoint() % and actual point. Set model parameters
% again, according to defined error.
x_deg = x_deg - 1; % remove these, when you have the error functions above
y_deg = y_deg + 1;
%% End of start point search
Comentarios a estos manuales