, :
smallest = np.amin(image, axis=(0, 1))
largest = np.amax(image, axis=(0, 1))
:
smallest = image.min(axis=0).min(axis=0)
biggest = image.max(axis=0).max(axis=0)
If you want to get the results as lists, just add .tolist()at the end of each of the above.
source
share