matlab - crop image and display cropped image in axes -
i have image , want crop applied code cropping image not showing cropped image on axes :
imrect(iedge2) hplot = plot(xbox, ybox); pause(2) delete(hplot) cla('reset') imshow(i, []); % no need specify 'parent' now. title('cropped image', 'fontsize', 12);
i want show message on top of axes area "crop image" when crop process occurs , after selection of area cropped area shown `axes2 .some body please tell me there function or method so?
thanks , regards`