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: 

Geometric match extraction

Solved!
Go to solution

Hello,

 

Im wondering how i can extract from image only area that are in geometric match. I want to measure light intensity of LCD area, but to be precise i dont want to measure whole box but only area of geometric match. 

 

In attachment you can see that i want to extract only area inlcuded inside green line.

 

12.png 

 

 

Can anyone help me?

 

Thanks

http://www.krzysztofszewczyk.net
0 Kudos
Message 1 of 2
(4,622 Views)
Solution
Accepted by KrzysztofSzewczyk

You're still going to have a 2D array of information so you can't necessarily get rid of that "black" area. However if you created a binary image from threshold you could then multiply the arrays together and then you would end up with a 2D array that had the original pixel values for the "green area" and then everything else would be a 0 value. This should make whatever calculation you are using for light intensity fairly easy to apply by ignoring 0 values.

Message 2 of 2
(4,592 Views)