Skip to content

Instantly share code, notes, and snippets.

@victormurcia
Created September 3, 2022 01:41
Show Gist options
  • Save victormurcia/41187de45fd0da33312eea63ce308460 to your computer and use it in GitHub Desktop.
Save victormurcia/41187de45fd0da33312eea63ce308460 to your computer and use it in GitHub Desktop.
Get hue channel from image
i=0 ; j=0
#Initialize array the will contain Hues for every pixel in image
hues = []
for i in range(height):
for j in range(width):
hue = hsv[i][j][0] #This is the hue value at pixel coordinate (i,j)
hues.append(hue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment