Hi,
Whats the best method to compare two pictures of mainly black color , (or two pictures of mainly red color) I'm looking at a specific location on an image and am hoping to see a black colored wire ( or a red coloured wire) in that location. If the wire is not in that location i would see either a gray backround (or a green backround if looking for red cable) .
What I want to ensure is every time I check the location I see a Black shade ( which indicates a Black wire) and must ensure there is no gray backround seen. If all gray background is seen then this indicates the wire is not present if some gray background is seen then this indicates the wire might be present , but is not in the exact correct location.
Bearing in mind that in my picture Black can sometimes how up as dark gray, what the best way to distinguish between the cable and the background and whats the best method to ensure there is no background in the image.
I'm looking at template match , but from what i see it does not quite compare colors.
Can I get the average of value of colors in an image and do a comparision against a master image ? how could I do this ? would it work ?
all help greatly appreciated thanks