From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-19-2014 11:06 PM
Hi all,
I am trying to implement digital zoom algorithm using any interpolation technique up to 4X in steps of 1X for an image size of 640X480 image. I need to zoom only specific region of interest of entire image. Kindly let me know how this can be acheived using NI vision development module.
With best regards,
Sri
06-20-2014 01:06 AM
How do you select the roi? manually? or from some other processing like pattern matching? have you tried the property node zoom for the image?
06-20-2014 02:19 AM
Please try this
06-20-2014 03:38 AM - edited 06-20-2014 03:38 AM
Hello,
how about something like this (please see the attachment, saved for LV2010).
Select the ROI (currently manual ROI selection) on the original image and "Zoom" to extract the selected subimage and resample to original size. You can repeat the process, as the original image gets updated with the currently zoomed portion of the image.
The interpolation is Labview default (zero or bilinear).
Best regards,
K
07-08-2014 04:24 AM
Hi,
There is change in my application.
I need to zoom up to 4X factor in steps of 1X for the image from centre and not any roi (region of interest based). So please let me know how this can be done.
with regards,
sri
07-08-2014 05:22 AM
If you dont select the ROI then i think it will default to your image centre
07-08-2014 07:19 AM
@SriSwathi wrote:
Hi,
There is change in my application.
I need to zoom up to 4X factor in steps of 1X for the image from centre and not any roi (region of interest based). So please let me know how this can be done.
with regards,
sri
I don't understand - was the attached application helpful or you wanted something else?
If it was, then just create a ROI based on the image center with the desired offset. Find the center of the image, and get the top-left coordinates by subtraction and bottom-right with addition with respect to the image center. Then create the ROI from the coordinates using rectangle to ROI. Interpolate with the created ROI, repeat...
Best regards,
K
07-11-2014 04:25 AM
Hi,
I actually wanted an real time zoom in function, wherein i have to zoom from centre of the image/frame. I could not understand the how to zooming in steps of 1X up to 4X. Please help me out i have tried Imaq resample etc.
with best regards,
sri
07-11-2014 04:32 AM
Resample is not Zoom. Did you try the programs suggested above?
07-11-2014 04:35 AM
Hello,
you cannot zoom from the center of the image as in camera, since the camera uses so-called optical zoom. Here, we are talking about digital zoom (the optical parameters don't change and the image quality is reduced by interpolation). In this case, you need to specify the portion of the image to enlarge and resample.
Have you seen the example in one of te previous posts? Just modify the ROI, so that its center coincides with the image center.
Best regards,
K