Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Color Pattern Matching - Ignore Black and White options

Hi,
 
I am using .net libraries in Vision Development Module to implement color pattern matching for my product and I encounter the following problem.
 
Since the product has an irregular shape, I create a template of product image with a background in black color (RGB: 255,255,255) and learn with the learn option "CWIMAQIgnoreBlackAndWhiteOptions.cwimaqIgnoreBlack". However, no match was found while matching with the photos of the realistic product. I even try on "Ignore White" option with a template of white color in background and "Ignore black and white" option, but nothing help.
 
If I modify the photo so that it's all black in color except the product (with irregular shape), then I got 998 in score while matching with the template that I created. I even tried these steps using Vision Assistant 8.0 and it returns the same result.
 
I wonder whether I misunderstand the defintion of CWIMAQIgnoreBlackAndWhiteOptions or I do not use it properly.
 
Any help is appreciated.
 
Best Regards,
Joanne
0 Kudos
Message 1 of 2
(3,101 Views)
Hi Joanne,

I posted a reply to your question at the link below. let's continue with that thread.

http://forums.ni.com/ni/board/message?board.id=232&message.id=2970

S. Arves S.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(3,093 Views)