Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get Full HSV Hue Value Range(0-360 or 0-1 in double) in Python?

I want to edit pictures and i need the Hue Values. But when i use cv2.cvtColor with, cv2.COLOR_BGR2HSV or cv2.COLOR_BGR2HSV_FULL, i get a value range for hue from 0-179 or from 0-255. So i lose information about the image. If i convert the image for example in matlab, i get a double range from 0-1, so i don't lose information about the image.

I tried to read the image with cv2.imread and the flags= cv2.IMREAD_ANYDEPTH, but then i can't use the cv2.COLOR_BGR2HSV_FULL convert function...

How to get Full HSV Hue Value Range(0-360 or 0-1 in double) in Python?

I want to edit pictures images and for that i need the Hue Values. Value from the image. But when i use cv2.cvtColor with, cv2.COLOR_BGR2HSV or cv2.COLOR_BGR2HSV_FULL, i get a value range for hue from 0-179 or from 0-255. So i lose information about the image. If i convert the image for example in matlab, i get a double range from 0-1, so i don't lose information about the image.

I tried to read the image with cv2.imread and the flags= cv2.IMREAD_ANYDEPTH, but then i can't use the cv2.COLOR_BGR2HSV_FULL convert function...

How to get Full HSV Hue Value Range(0-360 or 0-1 in double) in Python?

I want to edit images and for that i need the Hue Value from the image. I first read the image with cv2.imread function. But when i use cv2.cvtColor with, function with cv2.COLOR_BGR2HSV or cv2.COLOR_BGR2HSV_FULL, cv2.COLOR_BGR2HSV_FULL function to convert the image, i get a value range for hue from 0-179 or from 0-255. So i lose information about the image. If i convert the image for example in matlab, i get a double range from 0-1, so i don't lose information about the image.

I tried to read the image with cv2.imread and the flags= cv2.IMREAD_ANYDEPTH, but then i can't use the cv2.COLOR_BGR2HSV_FULL convert function...