Table of Contents
show
Display the image
To print the array use imshow()
plt.imshow(pic_arr)

Extracting Channels
To extract Red Channel

0 – No red, pure black
255 – Full Red
Each of the three R, G, B channel has a range of these values
255 – Full Red
Each of the three R, G, B channel has a range of these values
To change the color map to “gray”

To print the green channel image

pic_red[:,:,1]


pic_red[:,:,2]

To completely rid of one color
pic_red[:,:,1] = 0

To completely rid of bluecolor

Views: 3