How to distinguish different continuous color blocks in an image

I want to divide a figure into different continuous color blocks (containing repeated color areas), and calculate their average colors of these blocks in another corresponding rendering (real) image. And consequently to convert a rendering image into an illustration.
Can anyone give me some hints? :cowboy_hat_face: Thanks.

Hi,

Welcome to the forum! :wink:

If you are new to Processing and pixel manipulation in general, I strongly encourage you to follow this tutorial on the Processing website :

https://processing.org/tutorials/pixels

You’ll find answers on how to access pixels, loop through them, create images and more! :yum:

1 Like