Overwriting Pixels in numpy array

  • Thread starter MrJonesIsCountingCrows
  • Start date
M

MrJonesIsCountingCrows

Guest
I have an image that I am trying to replace pixels with some arbitrary color(let's say blue). How can I do this with an array. For example my image is:

a b c d e
f g h i j
k l m n o
p q r s t
u v w x y


And I want to change the color of columns 3,2,3,4,3 so that my image becomes something like

a b c * e
f g * i j
k l m * o
p q r s *
u v w * y


where the * is the replaced pixel with blue. How can one do that?

Continue reading...
 
Top