Created
September 3, 2022 01:41
-
-
Save victormurcia/41187de45fd0da33312eea63ce308460 to your computer and use it in GitHub Desktop.
Get hue channel from image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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