Image Processing with NumPy (2)
NumPy is Numerical Python.
- NumPy reads an image as
ndarraywhose shape is
(row (height), column (width), color (channel)).
convert('L')converts an image to grayscale whose shape is
(row (height), column (width)).
- A negative-positive inverted image can be generated by subtracting the pixel value from the max value (
Posted on July 15, 2021 Tags: