vendredi 22 décembre 2017

Can I make random mask with Numpy?

I'm doing image processing using Python.

I am trying to randomly extract some pixels from the image.

Is it impossible to make random mask with Numpy?

What I'm thinking now is to make 1000 elements of the 10000 line array True and all else False, is it possible to realize this?

Also, if impossible, is there any other way to make a random mask? Thank you.




Aucun commentaire:

Enregistrer un commentaire