Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize Image IMAQ 1394

Is there a VI that works with "IMAQ1394 Snap" format which can resize an image in order to make it all fit in an image window? (Currently the image is _truncated_ to the size of the window)

Thanks!
0 Kudos
Message 1 of 5
(4,249 Views)
All of the routines that resample, resize, or otherwise manipulate the image are all part of the Vision toolkit, which must be purchased separately. The toolkit also has the ability to zoom in and out on an image, which is a quick way to make it fit in a desired area.

What are you using to display the image? If you are using the picture control, you can change the size of the control to fit the image. Feed the dimensions of the image array into the width and height of the control using property nodes.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 5
(4,249 Views)
Thanks, Bruce!

Indeed, I'm using the picture control, but the image is very large (960x1280), so it takes almost the entire screen.

So what does "IMAQ SetImageSize" do? I tried to use it and the image became all garbled.

Thanks!
0 Kudos
Message 3 of 5
(4,249 Views)
SetImageSize will set the size of the image before you fill it. It is simply a memory reallocation. If you already have an image there, it will garble it when you change the width. If you change the height, it typically just truncates or extends the image.

A quick solution is to just take every other pixel. Many cameras can decimate in hardware, but it isn't too difficult to do in software. This will reduce your image size by half in each direction, and will fit much better on the screen.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 5
(4,249 Views)

 


DBM wrote:
Is there a VI that works with "IMAQ1394 Snap" format which can resize an image in order to make it all fit in an image window? (Currently the image is _truncated_ to the size of the window)

Thanks!

Hi, DBM.

Have you ever worked it out?

0 Kudos
Message 5 of 5
(3,039 Views)