Pillow image processing 8: Changing colors using np.where

Опубликовано: 12 Июнь 2026
на канале: Christopher Davis, UC Irvine
84
3

Python notes for Math 9:
https://christopherdavisuci.github.io...

Python playlists for Math 9:
Python data types:    • Python data types  
Alternating list:    • Alternating list  
NumPy:    • NumPy  
Pythonic code:    • Pythonic code  
Matplotlib:    • Matplotlib  
Newton's Method:    • Newton's Method  
Pillow image processing:    • Pillow image processing  
Brief introduction to object-oriented programming:    • Brief introduction to object-oriented prog...  

00:00 Examples using np.where
2:29 Incompatible dimensions
4:00 Reshaping the mask
4:37 Getting random colors
6:02 Stretching the color array
8:00 Displaying the final image