I want to create a program that determines all the areas of a given picture that have a different color, or the same color with different luminosities.
Are there known algorithms that do this job ? I would love to study such algorithms and implement them.
Thank you in advance for any help.