How do I visualize negative RGB values?.
As per OpenCV Documentation:
CV_8S – 8-bit signed integers ( -128..127 )
Does it mean that -128 mean 0 and 127 means 255?
If yes, then why do we need to have
CV_8U – 8-bit unsigned integers ( 0..255 )?
I am sorry if my question is trivial.
How do I visualize negative RGB values?. As per OpenCV Documentation: CV_8S – 8-bit
Share
A possible reason for 8-bit signed values for pixel calculation comes from the necessity to represent RGB colors in YUV, YCrCb or other modes with chrominance. The Chrominance channels are encoded as differences in Green-Blue and Green-Red or Green-Yellow, Red-Blue etc. to simplify the answer. This range has also negative values.