How to see the color layers of an image in Julia

#1

I want to see the layers of color that my image has, in this case it is toy occupying the image of the mandril, and I want to see all the layers of color that that image has.

Can somebody help me?

0 Likes

#2

i played with the docs of Images.jl and this seems pretty good:

using Images, TestImages
img = testimage("mandrill")
 #the point is to broadcast the operation to the entire array
redmandrill=red.(img) #red channel
bluemandrill=blue.(img) #blue channel
greenmandril=green.(img) #green channel

the numbers are a fraction of 255 (normalized between 0 and 1)

1 Like

#3

thank you very much friend, I would like to see him as his behavior of the images

0 Likes