Color Fill Bounded Polygon Sectors
Posted: 2019-05-21T09:55:01-07:00
I recently created an image using matplotlib. The image contains 3 color radius sweeps with a curve (to create a cone). I would like to color fill each cone sector that is bounded by a vertical line and horizontal line. Any ideas how I would go about doing this with Imagemagick?
I wondered if there was a command line function that looks for 2 neighboring colors that meet and change them both to a single color (i.e. red color touches while color). The cone sectors will change position regularly, so I don't think I can use a static pixel position.
This is what my image looks like now https://imgur.com/vCYIXGH
This is what it may look like if the sectors were color filled. https://imgur.com/rwJTDP3 -- > I used gimp to do a quick color fill.
I wondered if there was a command line function that looks for 2 neighboring colors that meet and change them both to a single color (i.e. red color touches while color). The cone sectors will change position regularly, so I don't think I can use a static pixel position.
This is what my image looks like now https://imgur.com/vCYIXGH
This is what it may look like if the sectors were color filled. https://imgur.com/rwJTDP3 -- > I used gimp to do a quick color fill.