Sat Feb 25, 2012 1:45 am
NumberArrays=[20 20 120 120]
% Show the Image
figure(1), imshow('000067.jpg');
h = imrect(gca, NumberArrays);
addNewPositionCallback(h,@(p) title(mat2str(p,3)));
% recall function to draw the rectangle.
fcn = makeConstrainToRectFcn('imrect',get(gca,'XLim'),get(gca,'YLim'));
setPositionConstraintFcn(h,fcn);
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.