11-10-2014 08:05 PM
Hi,
I recently started using vision assistant and am trying to crop an image using 2 points (upper right, lower left corners) that I located with the pattern matching function. Using the image mask function, it seems that I can only do this manually though. Is there any way that I can use my reference points to crop the image automatically?
Thanks,
Tei
11-11-2014 02:32 AM
11-11-2014 09:42 AM
Hi,
Unfortunately, in Vision Assistant, not many functions support using results from previous steps.
However, the Run LabVIEW step does, and you can create a simple LabVIEW VI that extracts the image, using IMAQ Extract suggested by Klemen. Create an image control and numeric controls (x1, y1, x2, y2) that you connect to the connector pane. Use these controls in the VI to extract the region.
Follow the instructions on the FAQ page to save the VI for source distribution, so that it can be called from the Vision Assistant executable.
Then call it using the Run LabVIEW step in Vision Assistant. From the VI Controls tab, you can associate your previous pattern matching results to the input of the VI, and the image control to the current image.
Sorry it's not more straightforward....
Best regards,
Christophe
08-30-2017 05:08 AM
HI SIR HOW TO CROP DISEASES IDENTIFY NORMALCROP, DISEASES HIG HOW TO INDICATING PLEASE SEND THE PROGRAM SIR PLEASE SIR
THANK YOU
I AM WATTING SIR PLEASE SEND THE PROGRAM6
08-31-2017 08:30 AM
I think you might struggle with NI Vision. In LabView I use IMAQ extract tetragon. ROI coordinates need to be transformed into tetragon coordinates for the input to this VI, but this is relatively straightforward. It is easy to save your NI Vision script as a VI and then add the IMAQ extract tetragon VI.
Simon