03-17-2021 10:53 AM
HI All
I am trying to apply a threshold to an Image so that I can track its centroid across a screen as a beam moves, the goal is a beam pointing Stabilization.
I have set the threshold to be between 128 and 255. The vi description seems to suggest that I anything between these two values would be set to zero but it seems to do the opposite (Anything outside this range is set to 0).
Would anyone be able to assist me in understanding how this works.
Best Wishes
Andrew
Solved! Go to Solution.
03-17-2021 12:15 PM
maybe just an issue with the Intensity plot...?
03-17-2021 12:20 PM
Hi
Thank you so much for the reply, would it be a good idea for me to send you the VI so you can have a look at it.
Best Wishes
Andrew
03-18-2021 05:47 AM
@AndrewIons01 wrote:
Hi
Thank you so much for the reply, would it be a good idea for me to send you the VI so you can have a look at it.
Best Wishes
Andrew
save your .vi with typical data(you have to click edit>make current vales default)
and then attach to this post
03-18-2021 05:53 AM
Thank you for replying, Here is the vi
03-19-2021 07:31 AM - edited 03-19-2021 07:32 AM
@AndrewIons01 wrote:
Thank you for replying, Here is the vi
I am afraid there is no data (in your 4dsigma Threshold example.vi 62 KB) attached - also, maybe the issue is in your self-written sub.vi?
03-21-2021 08:06 AM
Sorry for the delay, here is is. I ma also having trouble taking a series of images, computing them into 2D arrays, taking the average of these arrays. I keep getting zero at the moment.
03-21-2021 07:24 PM
@AndrewIons01 wrote:
I have set the threshold to be between 128 and 255. The vi description seems to suggest that I anything between these two values would be set to zero but it seems to do the opposite (Anything outside this range is set to 0).
Would anyone be able to assist me in understanding how this works.
I'd do something like this
03-22-2021 03:34 AM
Thank you for the reply, I do have a question regarding your solution, why do you have two graphs going into an array builder? why do we need both going in.
This image is a grey scale image, can set the colours to be a grey scale automatically?
My final question (its a silly one). How does this function compared to the IMAQ Threshold VI.
Once again I appreciate your help.
Andrew
03-22-2021 03:49 AM - edited 03-22-2021 03:50 AM
Hi Andrew,
@AndrewIons01 wrote:
why do you have two graphs going into an array builder? why do we need both going in.
Because both graphs are set to the same properties…
@AndrewIons01 wrote:
This image is a grey scale image, can set the colours to be a grey scale automatically?
Yes. just change the colorscale settings (aka ZScale.MarkerValues)…