Change color of some regions
Posted: 2018-10-11T00:04:13-07:00
Hello to all,
I have an image like this (I get this image applying convert input.png -alpha extract -negate out.png):
I would like
1- to change the internal black squares to red
2- change the white rectangles to red. These white rectangles have some pixels in black inside.
The output I´m looking for is like this:
Is there a way to make this?
Thanks in advance for any help.
I have an image like this (I get this image applying convert input.png -alpha extract -negate out.png):
I would like
1- to change the internal black squares to red
2- change the white rectangles to red. These white rectangles have some pixels in black inside.
The output I´m looking for is like this:
Is there a way to make this?
Thanks in advance for any help.