hello
i have a large numpy array and i would like to write a python script for assigning zero (0) to every maximum cell in every four adjacent cells. For example, see figure below:
Attachment 19775
Any help would be very much appreciated, thanks in advance!
i have a large numpy array and i would like to write a python script for assigning zero (0) to every maximum cell in every four adjacent cells. For example, see figure below:
Attachment 19775
Any help would be very much appreciated, thanks in advance!