Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Navigation window

Solved!
Go to solution

Hi!

 

On the font panel, i have two image display. One is bigger, and use it for diplaying image. I want to add follow functionality to my second image display, but I dont know how to implement it:

 

When I zoom into the big image, and use pan to move the displayed image, I would like to see on the second image where I am. I.e black background, and yellow filled rectangle shows where is my position in the zoomed image. And the size of the yellow rectangle on small image display is in connection with my zoom factor on my big image display.

 

any idea?

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 1 of 3
(3,176 Views)
Solution
Accepted by topic author D60

Hi,

 

All necessary information is available through Property Nodes of the Image Display. What you need is - Image Center Position, Image Area (or Displayed Area - I don't remember), and Zoom Single. Also you know Size of the Image. Rest is simple arithmetic - you need to calculate rectangle position and offset, then draw this rectangle on small image (as overlay, or may be as ROI). That is all.

 

Andrey.

 

0 Kudos
Message 2 of 3
(3,170 Views)

Thank you very much.

Aim of my question really was: What protery nodes are necessary used to do that!

And it was answered!

Thank you again

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 3 of 3
(3,167 Views)