mardi 17 juillet 2018

Pad a numpy array with random values within a given range?

I want to be able to border an array (really an image file) with a set of random values. The numpy.pad function does not have any mode to do this. Is there a shorthand way to achieve this or would I have to create a function from scratch?




Aucun commentaire:

Enregistrer un commentaire