- Hands-On Image Processing with Python
- Sandipan Dey
- 67字
- 2025-02-22 06:42:26
Basic image manipulations
Different Python libraries can be used for basic image manipulation. Almost all of the libraries store an image in numpy ndarray (a 2-D array for grayscale and a 3-D array for an RGB image, for example). The following figure shows the positive x and y directions (the origin being the top-left corner of the image 2-D array) for the colored lena image: