I have very large ndarray (gray scale image). I want to overwrite all the pixels into new ndarray with multiple IF condition, for example: (value <= 50) = 0; (50 < value <= 200) = value; (200 < value) = 255.
Thanks!
Aucun commentaire:
Enregistrer un commentaire