cv在把RGB空间转换为
HSV
空间之前先把RGB的值转换到0~1。
对于 HSV :
On output 0≤V≤1, 0≤S≤1, 0≤H≤360.
The values are then converted to the destination data type:
8-bit images:
V <- V*255, S <- S*255, H <- H/2 (to fit to 0..255)
16-bit images (currently not supported):
V <- V*65535, S <- S*65535, H <- H
32-bit images:
对于 HSV :
On output 0≤V≤1, 0≤S≤1, 0≤H≤360.
The values are then converted to the destination data type:
8-bit images:
V <- V*255, S <- S*255, H <- H/2 (to fit to 0..255)
16-bit images (currently not supported):
V <- V*65535, S <- S*65535, H <- H
32-bit images:
H, S, V are left as it is(0≤V≤1, 0≤S≤1, 0≤H≤360).
转载链接:http://blog.csdn.net/dark_blue_sea/article/details/5251763