Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make one image out of 2?

Due to the size of my buffers, I am unable to get the entire image using my linescan camera. I would like to be able to put 2 images of size 4096*3887 together to create an image 4096*7774. It takes up too much memory when I dump them to arrays, concatenate the arrays, and then put back as images. I would like to do it without converting to arrays.

I am using Labview 5.1 and the Vision software along with an IMAQ 1424 board. I am also running NT.

Thanks,
Rob Kinsler
robk@arl.army.mil
0 Kudos
Message 1 of 10
(4,865 Views)
Rob,

I have a solution for you. I haven't tested it, but it should work.

First, use IMAQ SetImageSize to set the size of the first image to 4096x7774.

Next, use IMAQ ImagetoImage with the appropriate offset to copy the second image into the lower part of the first.

This should work. Let me know if this does it for you.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 10
(4,865 Views)
Hi,

I've played around with that idea along with extract and expand, the only problem is that when I adjust the resolution of the first image, it stretches the picture rather than just adding on blank space to an existing image. Right now I'm trying to save a copy of the original image which I'll then paste with ImagetoImage, but I'm starting to get into eating up memory creating all these buffers again.

It just seems like it should be a trivial problem, but I guess no-one else is taking pictures of 4ft x 8ft objects.

Thanks!!
robk
0 Kudos
Message 3 of 10
(4,865 Views)
I tested SetImageSize, and it does exactly what I expected. You can't change the image width, but you can change the height (Y direction). If you do change the width, you get garbage. If you just add to the height, you get a nice blank space where you can use ImageToImage to copy your second image.

Extract and expand do different things, they are not what you want.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 10
(4,864 Views)
I have the same problem but have to add images in the X-direction:
It seems that SetImageSize does not set an Image size bigger than 1024 on the X direction! (imaq vision 6.0.1)Too bad!
0 Kudos
Message 5 of 10
(4,864 Views)
Sorry wrong information! That's only the Imaq WindDraw that does not show the whole image, even if the "Resize to image size" parameter is TRUE.
0 Kudos
Message 6 of 10
(4,865 Views)
If you want to see the whole image, turn on the scrollbars. IMAQ windows can only be sized to fill the screen, as far as I know.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 7 of 10
(4,864 Views)
I had a similar problem,where I needed to add 12 columns to end of my image, so I created an image, set size to original+12 in x direction then did an Imaq Image to Image from my original into the newly created one. You can do an Imaq fill Image if you know what you want in the new area after setting the size above.
0 Kudos
Message 8 of 10
(4,864 Views)

Hello,

This is probably a stupid question, but I'm using Labview 8, and for some reason it does not seem to have IMAQ ImageToImage?  I need this because I am trying to save the outputs from two cameras as a single .avi file.

I've tried opening some of the examples posted on this forum, but the PC stops and asks me to specify the exact location of 'IMAQ ImagetoImage'.  Can anybody explain what has gone wrong here?

It also asks me to specify the locations of 'IMAQ Arraytoimage' and 'IMAQ cast image' as well.

Any suggestions will be gratefully appreciated.

Bruce (a very new-to-labview user!)

0 Kudos
Message 9 of 10
(4,582 Views)
Bruce79,

Thank you for using our discussion forums.  The VIs you are mentioning are actually included in our Vision Development Module.  Our VDM page (  http://www.ni.com/vision/vdm.htm ) will give you more information regarding this software and purchasing options. 

Regards,
Vu Doan
Application Engineer
National Instruments
0 Kudos
Message 10 of 10
(4,547 Views)