06-22-2011 09:34 AM
I have a for loop that reads frames which is a simple way to display a video and manipulate the frames as they pass by.
However, the only way I found to crop a displayed product to your region of interest is
IMAQ select rectangle -> rectangle to ROI-> IMAQ extract -> image out.
The problem with this is that when you put it within a for loop it asks for a new ROI every frame. I have 625 frames and this caused a large problem for my program. I can not put the select rectangle out of the loop because it requires the Read Frame data from within.
Additionally I would much rather have an image out style display on the front end than to generate a new window.
I am perplexed and looking for guidance.
thank you.
06-23-2011 01:14 PM
Hey agator2,
You can alter the program such that you define the rectangle with one image outside of the for loop, the feed that rectangle to the ROI tools inside of the while loop for processing the image. That will stop the program from prompting you for a new rectangle each time. Hope that helps!
08-29-2011 11:58 PM
as for me, i'd recommend to use this tool http://www.geovid.com/VidCrop/, it's nice)