Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Draw ellipses based on the axis

I have the minor and major axis of the ellipse, but I don't find an easy way to draw the ellipse in a picture. As far as I have experienced, the "IMAQ overlay oval" doesn't accept rotated bounding rectangles. Does anyone have an idea of what I should do? Thanks!
0 Kudos
Message 1 of 4
(3,712 Views)
The IMAQ Overlay Oval.vi will give you an eliptical overlay if you're bounding rectangle is scaled correctly.
Try just overlaying a constant at first using the following:
Left = 100
Top = 100
Right = 200
Bottom = 150
This will give you a bounding rectangle of 100wide x 50tall and hence an eliptical overlay.

Hope that helps.
0 Kudos
Message 2 of 4
(3,712 Views)
I understand my question is vague. The problem I have, is that I need a "rotaded ellipse" that is drawn over an elliptical shape in the picture. The "IMAQ Overlay oval" let you define ellipses with horizontal and vertical axis only. This causes problems for me.
0 Kudos
Message 3 of 4
(3,712 Views)
Sorry for the misunderstanding first time round.
In your application, are you able to generate the coordinates of points that lie on this rotated ellipse? If so, you could generate an array of (x,y) points and use the IMAQ Overlay Multiple Line.vi to effectively plot out a rotated ellipse.
(Unless someone else has another idea?)

Dan
0 Kudos
Message 4 of 4
(3,712 Views)