Is it possible to detect if an image is being displayed as a “Negative Image” in C#? In other words the colors are inverted?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you don’t have the original image to compare (and then what you are trying to do is detecting if an image is the negative of another one), then you can only try to guess that it is some kind of negative image, but you cannot be 100% sure about it.
The negative image is simply the image where each pixel colour is:
Red = 255 – originalRed
Green = 255 – originalGreen
Blue = 255 – originalBlue