Just like the title of this topic, how can I determine in OpenCV if a particular pixel of an image (either grayscale or color) is saturated (for instance, excessively bright)?

Thank you in advance.

有帮助吗?

解决方案

By definition, saturated pixels are those associated with an intensity (i.e. either the grayscale value or one of the color component) equal to 255. If you prefer, you can also use a threshold smaller than 255, such as 240 or any other value.

Unfortunately, using only the image, you cannot easily distinguish pixels which are much too bright from pixels which are just a little too bright.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top