10-19-2017 04:33 AM
Hi,
I have a color image grabbed, tresholded and then analysed. After the analysis I put some overlay on the binary image.
If the result of the test is K.O. I would like to save the original color image next to the binary image in a single image file but i can't find how to do it.
Suggestion?
10-21-2017 02:24 AM
use this vi but before add two image you have to change binary image into RGB type for this one use imaq cast imaqe
10-23-2017 01:27 AM
This VI only allow me to insert a small image inside a bigger one.
Not to join two image one next to the other I wil get in output an image of the same size as the one in the LARGE input.
I need an image with one side double than the input one.
At the moment i solved this problem using 2d picture VI but it seems strange to me that is not possible using vision VI.
10-23-2017 10:33 AM - edited 10-23-2017 10:36 AM
It would take a few steps to do this.
Create a new image, and set the size to twice the width of the original image. Use IMAQ ImageToImage2 to copy the original image into the new image, using the appropriate offset. For the binary image, you need to merge the overlay into the image, then use ImageToImage2 to put it into the other half of the composite image. It might take a little more work to get the binary image to look right. I don't remember the easy way to retrieve the color mapped binary image from the binary one. Probably use the lookup table to convert the image.
Bruce
10-23-2017 12:49 PM
as Bruce indicate you can use above method that I show you
just create a image with vi that I show you in bellow image with size same as size to two image x coordinate length
elso you can convert image into array and use insert into array and then again convert them to image
10-24-2017 01:11 AM
Perfect, thank you so much!
10-24-2017 01:30 AM
ops...quite perfect...using "cast image" I'm not able to display the binary image.
I can do it multiplying the binary image by 255 before casting it.
Is it correct?
10-24-2017 03:48 AM
the easy method is to use imam equalize for this one but also multiply 255 also work