Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Vision, Extract fraction of image after zoom and pan.

Solved!
Go to solution

Hi all,

I need to extract and save a fraction of an image, after the user has used zoom an pan in an Image Display.

I already use ROI for something else...

 

I can't find any properties of the Image Display, which are useful for finding the coordinates of the view.

How can i find "left, top, right, bottom" of the view?

 

This (unresolved) topic deals with the a similar question:

how to determine what image pixels are currently displayed in an Vision Image display after zoom and...

 

Cheers,

BNJ

0 Kudos
Message 1 of 4
(220 Views)
Solution
Accepted by topic author BNJensen

I assume this example can solve your problem. I use the properties: ZoomSingle, Image Central Position and Image Area Size. From their I can calculate the  the shown section and to create a rectangle for the IMAQ Extract2.

 

 

Save Image Part shown in display.png

Message 2 of 4
(203 Views)

Ahh, Thanks p4keal!!

 

Great and illustrative reply!

It was the "Image Center Position", that I had missed, was actually changing with pan.

 

You saved my day

 

Cheers,

Brian

0 Kudos
Message 3 of 4
(200 Views)

You are wellcome 🙂

0 Kudos
Message 4 of 4
(188 Views)