python - uint8 CIE Luv Mat 的取值范围是多少?

标签 python c++ opencv

在 OpenCV 中,我正在使用颜色空间 CIE Luv 中的 cv::Mat,Mat 数据类型为 uint8。

我正在尝试找出每个 channel 的值范围。以下是正确的吗?

L can be any value from 0-255
U can be any value from 0-255
V can be any value from 0-255

我知道在 OpenCV 中 HSV Mats 可以是以下内容(注意色调不使用整个值范围)。所以我也想知道 CIE Luv 使用的是什么。

H can be any value from 0-180
S can be any value from 0-255
V can be any value from 0-255

最佳答案

对于 uint8:

HSV:(0,0,0) ~ (180,255, 255)

LUV: (0,0,0) ~ (255, 255, 255)

以下摘自 https://docs.opencv.org/3.1.0/de/d25/imgproc_color_conversions.html


enter image description here


enter image description here

关于python - uint8 CIE Luv Mat 的取值范围是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54797795/

相关文章:

python - 显着性检测后如何去除物体周围的可见背景边界?

python - 如果元素不遵循 'if' 'or' 语句,则从列表中删除它们

c++ - 通过分解掩码进行二维卷积

opencv - 如何从opencv 2.1中的HSV图像获取单 channel 值图像?

c++ - 警告 : extra tokens at end of#endif directive

用于读取结构的基于 C++ 范围的循环

opencv - 边缘检测iPhone OpenCV

python - 在 Python 中使用 "continue"语句的示例?

python - Django 模板上下文未显示

Python 和 if 语句