Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision Builder AI Overlay Custom Histogram

Hello, 

 

I'm currently using Vision Builder AI 2015 and I'll be using a CVS-1459RT with the embedded UI. I want to use the Count Pixel inspection step to search an image for certain pixels and I want to be able to overlay the blue histogram on my image while the inspection is running. Is this at all possible? I've attached an image of what i want to display in real time. 

 

Thanks

0 Kudos
Message 1 of 6
(3,738 Views)

I want to be able to use my front screen to set up the value of the manual threshold, which I've proven out, but I want to make it easier on the user and allow them to see the influence of the threshold on the front screen. 

0 Kudos
Message 2 of 6
(3,733 Views)

I believe one of the ways of achieving this is by using the Vision Assistant and filtering the image. The problem is I can't work out how to drop variables into the vision assistant setup. 

0 Kudos
Message 3 of 6
(3,723 Views)

Yeah, this is exactly what I need. Here are two images of the Count Pixel overlay and the Vision Assistant filter at the same threshold. The problem is how can I import the filter setting...

0 Kudos
Message 4 of 6
(3,705 Views)

Unfortunately, there is not a way to use previous values or variables in the Vision Assistant threshold step.

The way to do what you want to do is to implement what you want to do in LabVIEW and call your VI from the Run LabVIEW step.

From VBAI, create a global variable or User interface control to define the threshold value. You can use that variable to set the threshold in the count pixel step, and also pass it as a parameter to your VI called by the run LabVIEW step. The Run LabVIEW step also allows you to pass to your VI the ROI that was used in the Count Pixels step.

Implement the threshold/overlay in your VI. That should work.

If you need an example, let me know!

 

Christophe

0 Kudos
Message 5 of 6
(3,631 Views)

Hi, 

 

Sorry it's been a while since responding. Yes please, if you could send an example that would help a lot. I have LabVIEW 2016 and VBAI 2015. I can just save the run VI to a previous version of LabVIEW right? 

 

Thanks!

0 Kudos
Message 6 of 6
(3,310 Views)