05-30-2024 07:53 AM
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!
Solved! Go to Solution.
05-30-2024 08:37 AM - edited 05-30-2024 08:42 AM
@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:
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
05-30-2024 09:07 AM
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:
Regards,
Raphaël.
05-31-2024 04:39 AM
Using an array of image indicators will work both ways without having to handle events.
05-31-2024 08:47 AM
@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...).