LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Overlay Points from Array, Scaled Up

Hello All,

 

I am trying to overlay an array of points onto an image, but the image is fairly large, so I need to make the points bigger in order to be able to see them in "Zoom to Fit" mode.  Is there a way to do this?  Possible options would be:

 

1.  Increase the size of the points

2.  Use the "+" symbol in ROI Tools

3.  Use a bitmap

4.  Use an ascii character

 

I can do any 3 and 4 above with single points, but I don't know how to do something similar using an array of points.  Any help would be greatly appreciated.


Thanks.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 5
(3,961 Views)

Are you familiar with the Picture Functions Palette? There is a VI called Draw Point, which takes inputs for point location, size, and color. You can use this VI inside of a For loop to draw multiple points.

 

Edit: after re-reading your post I think you may be using NI Vision? If so, you can use the IMAQ Overlay Oval VI with the Drawing Mode set to Fill. You just have to calculate the oval bounding rectangle. Like this:

Points to Oval_BD.png

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 5
(3,950 Views)

Thanks for your help.  Yes, I am using NI Vision.  Is there a way to take the properties of the oval and apply them to an array of points?

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 3 of 5
(3,939 Views)

The snippet I included above takes in an array of X and Y values (points).

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 5
(3,935 Views)

Yes, yes it does.  Not nearly enough coffee this morning.  Thanks again.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 5 of 5
(3,932 Views)