OpenCVã使ã£ã¦ãç»åã®HSVè²ç©ºéã«ãããè²ç¸ Hue ãå転ããã¦è²ãå¤åããã¦ã¿ããã¤ã¾ããä¸è¨ã®å³ã®ãããªåºåãå¾ããã RGBããHSVã¸ã®å¤æ ja.wikipedia.org ä¸è¨ã®ãµã¤ãã«è©³ããæ¸ãã¦ãããã©ãHSVã¯è²ç¸(Hue)ã彩度(Saturationã»Chroma)ãæ度(Valueã»Brightness)ã®ä¸ã¤ã®æåãããªãè²ç©ºéã ä»åãããã¨ã¯ RGBãHSVã«å¤æãã H(Hue)ãå転ããã RGBã«æ»ã ã¨ããåç´ãªå¦çãã¾ãã¯RGBããHSVã¸ã®å¤æã import numpy as np import cv2 rgb = rgb.astype(np.uint8) hsv = cv2.cvtColor(rgb, cv2.COLOR_RGB2HSV) cv2.cvtColorã¯å ¥åãããrgbã®åãuint8ãfloat32ãã§æåãå¤åãããä»å
{{#tags}}- {{label}}
{{/tags}}