04-15-2014 08:16 AM
04-16-2014 05:56 AM
Hi F.N,
I hope you are well.
One of the easier ways of creating a Region of Interest (ROI) descriptor is to use the IMAQ Construct ROI VI as it allows you to select the ROI convieniently as it saves time creating code to perform the same task.
Essentially a dialog box will pop up allowing you to select the Region that you are interesting in analysing.
More information can be found here:
http://zone.ni.com/reference/en-XX/help/370281P-01/nivisionlvbasics/define_regions_of_interest/
and
http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_constructroi/
Kind Regards,
04-16-2014 08:12 AM
Thank you. We attempted that and so far it looks fine but the problem now is that we did not convert the image to grayscale. How would that be done?
04-16-2014 08:31 AM - edited 04-16-2014 08:31 AM
I can't see your VI, but I asume you used a 'create IMAQ.vi' in your program? You can wire a control to the Image Type input. If you use a control you can choose for grayscale.
Does this help you? Otherwise you will have to convert it in another way, but please let me know if this already works.
Kind regards
Ruts
04-16-2014 09:46 AM
We have now converted to grayscale, but the problem is still the ROI - we're told to use the "IMAQ Get LCD ROI", but as an input into that icon we now need another ROI descriptor. As we are taking pictures as a sequence, it would interrupt the program if we ask every time for the user to define the ROI
04-16-2014 10:00 AM
Also on this topic, would you please share your VI. This would make it a lot easier to see what's the problem.
04-16-2014 10:07 AM
Why don't you use the image control to define your ROI?
You can use a property node from your image display to output a ROI. You can then define this ROI with the tools on the side of the image display.
04-16-2014 10:11 AM
This is our vi. The problem is that we need a suitable ROI descriptor for the IMAQ get LCD ROI. Thank you
04-16-2014 10:13 AM
What do you mean by image control? How would we find it?
04-16-2014 10:23 AM
The thing on your front panel that is showing the picture from your camera!
Double click on it (so it takes you to the corresponding block diagram indicator), right click, create, property node, ROI.