Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

join two images

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?

0 Kudos
Message 1 of 8
(3,425 Views)

image.png use this vi but before add two image you have to change binary image into RGB type for this one use imaq cast imaqe

0 Kudos
Message 2 of 8
(3,387 Views)

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.

0 Kudos
Message 3 of 8
(3,377 Views)

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

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 8
(3,368 Views)

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 
sfdg.png
elso you can convert image into array and use insert into array and then again convert them to image 


0 Kudos
Message 5 of 8
(3,363 Views)

Perfect, thank you so much!

0 Kudos
Message 6 of 8
(3,353 Views)

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?

0 Kudos
Message 7 of 8
(3,351 Views)

the easy method is to use imam equalize for this one but also multiply 255 also work 

0 Kudos
Message 8 of 8
(3,342 Views)