i am trying to change certain matrix values of a 2D numpy array. I need this to classify areas of an image in pixel level.
Imagine having a matrix like: