Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

I try to interactively draw an isocel trapezoid on an image is it possible using IMAQ vision tools or vi ?

In the IMAQtools there is a limited number of tools. I would like to interactively draw an isocel trapezoid. How ca I do ?
0 Kudos
Message 1 of 3
(3,122 Views)
Hello,

When you have LabVIEW with the toolset IMAQ VISION, there is a lot of additional VIs that can help you to process image data.
The function: �convert array to image� can help you to resolve problem: build 2D array that represent the trapezoid and then convert it into image that you can save on the disk.

Now, about your application using only LabVIEW (without IMAQ VISION), one possible solution is to draw an isosceles trapezoid using data 2D array, plotting it into an X-Y graph and then saving the result into jpeg file.
Please, see the attached file. (LabVIEW 7)

I hope that my answer will help you.

Sanaa T.
National Instruments
0 Kudos
Message 2 of 3
(3,122 Views)
Since the triangle is not a standard ROI, you would have to create it manually. You could build a nice user interface that would track the mouse coordinates, display the triangle using overlays or ROIs, and anchor the corners of the triangle when you clicked. It would take some work to put it all together. You would need to use some math to figure out the coordinates of the three corners of the triangle. It would also depend on how many variables you have. Right now I see three mouse clicks - click position of tip of triangle, drag mouse to control orientation and height, then click and drag mouse to control width.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 3 of 3
(3,122 Views)