LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save image display with zoom factor

Solved!
Go to solution

Hi everyone, 

 

Is it possible to save image with zoom factor after zoom in at inspection interface?

 

Capture.PNG

I have tried with image logging and select active image, but still it save as original image without zoom factor as shown below,

 

test image.png

 

I'm running vision builder AI 2019.

Thanks for your help.

 

 

0 Kudos
Message 1 of 7
(2,602 Views)
Solution
Accepted by topic author cdq0107

Hi,

 

I once used picture indicator and that has a property named: Zoom Factor.

Xonmyth743_0-1656707815125.png

 

If you are using the same, then you should be able to read and write to this property. Read desired zoom factor value - Save it - Load it and Write to property node when needed.

 

EDIT: Writing appropriate zoom factor value to the property should re-size the image when loaded.

 

Message 2 of 7
(2,565 Views)

@XM43 wrote:

Hi,

 

I once used picture indicator and that has a property named: Zoom Factor.

Xonmyth743_0-1656707815125.png

 

If you are using the same, then you should be able to read and write to this property. Read desired zoom factor value - Save it - Load it and Write to property node when needed.

 

EDIT: Writing appropriate zoom factor value to the property should re-size the image when loaded.

 


I don't think this is what the OP is looking for. If I am not mistaken they want to save only the visible part of the zoomed image and crop the rest.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 3 of 7
(2,561 Views)

you might consider to use the invoke node "get image"

 

this is like capturing a screenshot from your frontpanel

0 Kudos
Message 4 of 7
(2,499 Views)
Solution
Accepted by topic author cdq0107
Spoiler
alexderjuengere_0-1656937168049.png

 

Download All
0 Kudos
Message 5 of 7
(2,497 Views)

Hi all,

 

Thank you very much for the solutions. 

 

I'm also including the example from the post below in my application.

https://forums.ni.com/t5/Machine-Vision/Labview-Vision-Extract-fraction-of-image-after-zoom-and-pan/... 

 

Message 6 of 7
(2,462 Views)
Solution
Accepted by topic author cdq0107

@cdq0107 wrote:

 

I'm also including the example from the post below in my application.

https://forums.ni.com/t5/Machine-Vision/Labview-Vision-Extract-fraction-of-image-after-zoom-and-pan/... 

 


here's another one using the imaq image display indicator's (manually drawn) ROI feature together with the "optional rectangle" input of the "IMAQ to Array" .vi

 

alexderjuengere_0-1657210819882.png

 

Save Image Part shown in display_rev2.png

Message 7 of 7
(2,414 Views)