ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Pixel intensity array, pass or fail

Solved!
Go to solution

I am having issues creating a VI that inspects the pixtel intesity within a given rectangle.

One of the problems I have is that in between the solar cells (see picture attached) there is a lead that appears black under SWIR imaging. So I would need two rectangles to inspect the system, and I havent been able to succeed in creating such program.

The second issue I have, I need a VI that checks within the rectangle(s) region specified all the pixel intensity. If there is an amount of pixels that is not within that region (broken solar cell), assign a fail inspection. (see attachement).

 

Any help would be appreciated

Thanks

0 Kudos
Message 1 of 3
(3,570 Views)
Solution
Accepted by topic author Selp

You should look into the Histogram tool.  I've attached a VI as an example.  It doesn't solve your ROI question, but it shows how to cut out the area as a rectangle.

 

Here's an image of the results of the histogram.  You could use the "Mean Value" as a measure of good/bad.

BadGoodHistogram.jpg

Download All
0 Kudos
Message 2 of 3
(3,558 Views)

Hey which function are you used? Check this which gives you the pixel intensity info on a defined rectangle.

---
Silver_Shaper | CLD
0 Kudos
Message 3 of 3
(3,549 Views)