how to get random pixel index from binary image with value 1 in python?
I have a binary image of large size (2000x2000). In this image most of the pixel values are zero and some of them are 1. I need to get only 100 randomly chosen pixel coordinates with value 1 from image. I am beginner in python, so please answer.
Aucun commentaire:
Enregistrer un commentaire