From: Aydos R on 30 Jul 2010 05:56 hi there, I have 5 different images(same image but different frames from a movie)...I would like to crop a target from the 1st frame image...then,when the 2nd frame image appears I would like to cut it same size...the 3rd,4th and 5th will be the same...my reference size will be the 1st crop size... Is there any way to see the size of the crop rectangle when doing crop process? or Does imcrop function let me crop the images with a fixed size and just let me change the position on the crop process screen? thanks in advance regards,
From: ImageAnalyst on 30 Jul 2010 09:03 Yes, just figure out hte coordinates and use the "hold on" and plot() commands to plot the box over the images. If you use imcrop with no arguments, it puts up a box with handles that you can adjust before finalizing. If you call it with specific coordinates, then it will use them and not ask the user for confirmation (I believe).
From: Aydos R on 30 Jul 2010 10:01 thank you...I've solved it from another way ; for i=1:pnum; c=imread(a(i).name); if i==1; [cc,rect]=imcrop(c); pos=rect; close figure 1; else figure,imshow(c); h = imrect(gca,pos); position = wait(h); cc = imcrop(c,position); close figure 1; end ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <ba261f32-ce54-4db2-ad3a-fcab2ec1e823(a)s9g2000yqd.googlegroups.com>... > Yes, just figure out hte coordinates and use the "hold on" and plot() > commands to plot the box over the images. > > If you use imcrop with no arguments, it puts up a box with handles > that you can adjust before finalizing. If you call it with specific > coordinates, then it will use them and not ask the user for > confirmation (I believe).
|
Pages: 1 Prev: ac drives bidirectional Next: Changing XTickLabels and YTickLabels font sizes |