Color Variation Closest to Black and White
-
- Posts: 107
- Joined: 12 Nov 2022, 15:47
Color Variation Closest to Black and White
I often need to find an image with constant shape but varied color (for example highlighted or un-highlighted). What color variation from 0 to 255 would be best to use in ImageSearch? Is there a color variation that is exactly like black and white?
Re: Color Variation Closest to Black and White
What do you mean by black and white? They are on the extreme opposite ends of the color values. Any variation that would include both will include every other color. Black is with each RGB component at 0 and white is with each component at 255 (0xFF).
Re: Color Variation Closest to Black and White
Hello,
I believe that the best option will depend on the images that you want to find. You can test your specific image with different settings, or use an image viewer to understand the hues that it contains.
I believe that the best option will depend on the images that you want to find. You can test your specific image with different settings, or use an image viewer to understand the hues that it contains.
Specify for n a number between 0 and 255 (inclusive) to indicate the allowed number of shades of variation in either direction for the intensity of the red, green, and blue components of each pixel's color. For example, if *2 is specified and the color of a pixel is 0x444444, any color from 0x424242 to 0x464646 will be considered a match
Re: Color Variation Closest to Black and White
around 100 works well
You might need to go up to near 200 for this however. If you get too many false positives go down
You might need to go up to near 200 for this however. If you get too many false positives go down
-
- Posts: 107
- Joined: 12 Nov 2022, 15:47
Who is online
Users browsing this forum: Chunjee and 97 guests