From: gerarrd on 27 May 2010 06:15 i'm analyzing a video(frame by frame) and would like to reduce computational time by getting only a region(that encompasses my roi) in the subsequent frames...now i basically take the first image...and when i go to the next one..i wanna get only a portion of the frame..so i did: cref=233;rref=248; % coordinates of my roi in the base frame %now in d subsequent frame i'd like to only consider a portion of it for analysis..for this i use plot(im);hold(imgca,'on'); F = getframe(imgca,[(cref-14),(rref+10),35,39]); %is this valid ? i get errors...appreciate replies that can help me put this function to correct use..
From: us on 27 May 2010 07:35 "gerarrd " <bondpiece007(a)yahoo.co.in> wrote in message <htlgnq$62i$1(a)fred.mathworks.com>... > i'm analyzing a video(frame by frame) and would like to reduce computational time by getting only a region(that encompasses my roi) in the subsequent frames...now i basically take the first image...and when i go to the next one..i wanna get only a portion of the frame..so i did: > cref=233;rref=248; % coordinates of my roi in the base frame > %now in d subsequent frame i'd like to only consider a portion of it for analysis..for this i use > plot(im);hold(imgca,'on'); > F = getframe(imgca,[(cref-14),(rref+10),35,39]); > %is this valid ? i get errors...appreciate replies that can help me put this function to correct use.. can you show the error message(s)... us
From: gerarrd on 28 May 2010 06:37 > can you show the error message(s)... > > us well this msg pops up: ??? Undefined function or method 'with' for input arguments of type 'char'.
From: Oliver Woodford on 28 May 2010 09:43 "gerarrd" wrote: > i'm analyzing a video(frame by frame) and would like to reduce computational time by getting only a region(that encompasses my roi) in the subsequent frames... Why do you get the ROI from the figure and not from the image data itself (which you must have to display anyway)? E.g. roi = im(38:58,105:125,:);
From: gerarrd on 29 May 2010 04:08 "Oliver Woodford" <o.j.woodford.98(a)cantab.net> wrote in message <htoh99$4f5$1(a)fred.mathworks.com>... > "gerarrd" wrote: > > i'm analyzing a video(frame by frame) and would like to reduce computational time by getting only a region(that encompasses my roi) in the subsequent frames... > > Why do you get the ROI from the figure and not from the image data itself (which you must have to display anyway)? E.g. > roi = im(38:58,105:125,:); in every frame i have to do a sequence of operations whose result is the roi! now what i'd like to do is ...to take only a restricted portion of the frame as i proceed ...its hence that after finding out the coordinates of the roi in the base frame...i go to analyze the next one using only a portion built around the area where the roi has been detected in the previous frame....thats y i use getframe(handle, [rect area encompassing the roi detected in d previous frame])...is there anything better that can help me ?
|
Next
|
Last
Pages: 1 2 Prev: dec2binvec is not giving the correct value Next: Find repeated elements in different arrays |