LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save zoomed image in a camera control

Hello, NI community,

I built a program for a USB camera in LabVIEW. I want to save zoom images (e.g. 0.25X, 0.33 X) using this VI. The VI is attached. Can anyone help me with this?

I really appreciate any help you can provide.

The snippet of the VI is as follows,

 

rd2024_0-1735944911621.png

 

0 Kudos
Message 1 of 2
(133 Views)

Hi,

 

Take a look at VI "IMAQ Resample" from palette "Vision and Motion" > "Vision Utilities" > "Image Manipulation".

It takes an IMAQ image and X/Y Resolutions, which are the new dimensions you want the image to be resized to. You can also choose the interpolation method.

 

Then you can for example use the image size multiplied by your ImageControl zoom so that the image file has the same size as the apparent image size in your control:

raphschru_0-1735948249448.png

 

Regards,

Raphaël.

0 Kudos
Message 2 of 2
(121 Views)