"on a border, where black pixels change to white and another way round, suppose to appear a growing element"
I had to read the sentence several times to understand, I think, the meaning.
Basically, you want to do edge detection, ie. to see when a dark pixel is next to a bright one, right?
You probably need a specialized library, like those doing blob detection or something (I never used them).
I had to read the sentence several times to understand, I think, the meaning.
Basically, you want to do edge detection, ie. to see when a dark pixel is next to a bright one, right?
You probably need a specialized library, like those doing blob detection or something (I never used them).