LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the easiest way to zoom into a picture?

Once I generated a picture, what is the easiest way to zoom into it? I.e. Mantaining the same picture size on the screen, but reducing the field of view on a certain section, in order to make it bigger?
Thanks.
G.
0 Kudos
Message 1 of 5
(2,928 Views)

Hi Gico,

in the attached VI you can view the property that allow you to zoom the picture. The example also resizes the picture to show all the window.

You have to find an algorithm to select a part of the picture you want to zoom using the other properties in the block diagram.

I hope this helps you.

MarcoC

0 Kudos
Message 2 of 5
(2,901 Views)

Thanks for answering. Unfortunately I couldn't open the .VI, since I'm still running Labview 6.0; do you think it might be possible to you to save it in an older version?

In any case, thanks a lot.

Gico

0 Kudos
Message 3 of 5
(2,892 Views)

I'm sorry Gico,

now I can give you a screenshot of the VI block diagram. It can be enough to view the properties node I'm using.

Bye.

MarcoC

0 Kudos
Message 4 of 5
(2,886 Views)
If you are using the picture control in version 6.0 you are out of luck, if I remember correctly, the zoom property was add in version 7.0 ( I could be wrong) .  The math is simple on zooming a picture however consisting of a translation and scaling factor only.  Lets assume we have a picture in a 600x800 (height pixels by height pixels) to zoom in to the center we use the center pixel (600/2, 800/2) and make the array subset of the zoomed image from center - (height/2)/zoom_factor and a zoomed height of height/zoom_factor and do the same for width.  So basically you find the center pixel (need not be the center of the image) and get a subset of the initial image array data with a new height and width both divided by the zoom factor.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 5
(2,874 Views)