Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I auto scale an image in display windows

Hi everyone!

I wish to image fit to display window even if image is larger or smaller than the display window.
I mean I wish to auto scale image when I load

I knew the resample the image by Resample.vi, but this function is make different resolution of image.
When I zoom the image after resample, the image pixel was broken.

I wanna keep the image resolution and I wish to display the image fit to the window size with no change resolution of image.

Is there any way to solve this matter?

If you have any idea, please show me how to..

Thank you..
0 Kudos
Message 1 of 7
(5,316 Views)
You actually need to use the zoom factor on the image display. Are you using the image display window or the image display front panel control in LabVIEW? I can give you a better answer once I know this.

Satish
0 Kudos
Message 2 of 7
(5,302 Views)
Thanks for reply.
And I use Image display window from Imaq of Labview.

I think that is basic display window of labview
anyway would you give me the simple example of zoom factor?

I heard about it, but i couldn't find.

Help me to find this solution ...

Thank you.
0 Kudos
Message 3 of 7
(5,296 Views)
You can adjust the zoom factor using the IMAQ WindZoom tool (Vision Utilities > External display > IMAQ Windzoom), after reading the image size (Vision Utilities > Image Management > IMAQ GetImageSize)

CC
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 7
(5,292 Views)
thanks, but I don't wanna popup display window..

I just wanna display it on the front panel of labview window not popup window.

Is there anyway to show image fit to the display window on the front panel of labview?

Thanks everyone...
0 Kudos
Message 5 of 7
(5,285 Views)
Well, the original "basic" image display window is the "popup" window. Sometimes, some words can be confusing. Anyway, as any LV indicator, the image indicator has a property node. You can adjust programmatically the zoom factor in the X and Y directions.
See the attachment.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 6 of 7
(5,283 Views)
The attached llb has example code that shows you how to fit any image to the Image indicator on the LabVIEW front panel. It is written in LabVIEW 7.0.
Message 7 of 7
(5,267 Views)