02-19-2013 06:17 AM
Hello everyone,
I have created a VI which is actually detecting the image now I am stuck on how to display the detected image. Please can someone help me.
02-19-2013 08:08 AM
You can try something like this (see the attachment).
Hope it answers the question.
Best regards,
K
02-19-2013 08:16 AM
Hello Klemen,
Thank you very much but I am intended to display only the rectangualy area not the whole image. Is there any way which can only show the detected rectangualar only.
thanks
02-19-2013 10:14 AM
Hello lazer,
In my opinion, the best option is to create an image mask and apply it to the image. Take a look at the "IMAQ ROIToMask 2 VI".
Your matching algorithm outputs "Rectangles" which gives you the coordinates of the corners and the angle. Use this to build the ROI - I belive "IMAQ Convert Rectangle to ROI" is capable of this. Then transform the ROI to mask and apply it.
I currently do not have a PC with Labview, so I do not have any evidence to support this. But I can try to help you tommorw in case you get stuck. Or maybe someone else has a better solution.
Regards,
K
02-19-2013 07:23 PM
Hello Kelmen,
Thanks for very good advices. Actually All day I was trying to get something but could not make it. Could you please kindly show this how this will work. It would be a great help for me. Please
Thanks
Regards,
02-20-2013 04:45 AM - edited 02-20-2013 04:47 AM
Hello lazer,
attached is the example of creating an image mask (only for first detected shape with highest score correlation). Be careful about the order of detected corner points - I am not familiar if the output is the same for all orientations of rectangles.
You can alternatively also extract that portion of an image, but you have to consider that images are arrays with NxM dimensions, so you can only get a rectangular (square) image as a result. The same goes for image masking of course, but here all values outside the mask are equal to 0, where as when extracting the image you also get the values of pixels surrounding your region of interest.
Best regards,
K
02-20-2013 05:57 AM
Hello Kelmen,
I am using LabVIEW 2011. Can you upload the example with version 2011 please.
Thanks
regards,
02-20-2013 06:01 AM
Sorry about that...
02-20-2013 06:05 AM
Thank you. I will let you know if stuck somewhere. Thank you very much for help
regards
02-20-2013 07:27 AM
Hello Klemen,
Thank you very much for all help. Actually I am only trying to diplay the solar cell out of the image which is in the shape of rectangular. Is there any way of this. Sorry for asking the same question again. Actually I was trying to find a way to display the olny rectangular solar cell image but could not find it. Sorry again for asking you again.
thanks
regards