09-03-2015 12:04 PM
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.
09-03-2015 12:18 PM - edited 09-03-2015 12:23 PM
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:
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-03-2015 12:27 PM - edited 09-03-2015 12:28 PM
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?
09-03-2015 12:28 PM
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> ---'
09-03-2015 12:29 PM
Yes, yes it does. Not nearly enough coffee this morning. Thanks again.