LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[VISION] Duplicate Inputs (ROI manipulation, Scroll, etc) from one IMAQ Image Control to a 2nd

Solved!
Go to solution

Hi,

 

I'm using two separate IMAQ image controls, one for the manipulated image and a second one for the source image.

 

Is there a way so that if I zoom or move across the image, the second imaq control duplicates the inputs on the first control?

 

For example If I zoom into a face on my manipulated image, the second control will also zoom to the same place.

 

Thanks!

0 Kudos
Message 1 of 5
(234 Views)
Solution
Accepted by topic author Jee_with_a_J

@Jee_with_a_J wrote:

Hi,

 

I'm using two separate IMAQ image controls, one for the manipulated image and a second one for the source image.

 

Is there a way so that if I zoom or move across the image, the second imaq control duplicates the inputs on the first control?

 

For example If I zoom into a face on my manipulated image, the second control will also zoom to the same place.

 


Something like that may be:

zoom.png

zoom.gif

If you need to "synchronize" ROI as well, then you can do this exactly in the same way using ROI Property.

VI attached as LV2018

0 Kudos
Message 2 of 5
(216 Views)
Solution
Accepted by topic author Jee_with_a_J

Hi,

 

It is possible by copying properties "Zoom Integer" and "Image Center Position" from the first image control to the second one.

You can further optimize the code by only refreshing when an event is detected on the first image.

The Timeout value (here 20ms) can be adjusted depending on the smoothness you want:

raphschru_0-1717077841404.png

Regards,

Raphaël.

0 Kudos
Message 3 of 5
(200 Views)

Using an array of image indicators will work both ways without having to handle events.

 

Untitled.png

Message 4 of 5
(101 Views)

@RamonG wrote:

Using an array of image indicators will work both ways without having to handle events.


Simple but quite efficient alternative (scrolling is ultra smooth!).

That may be the best solution unless you need to have different properties for each image (like palette / navigation / ROI tools...).

0 Kudos
Message 5 of 5
(88 Views)