[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: color border in image, drop everything outside of it



tomas wrote:

>> Well, in computing, the details are everything.
>
> Yes, that's it -- and they are usually left... to the reader :)
>
> Why should I deprive you of your fun?
>
> Actually it's that my stack is too high: I just wanted to help
> you avoid barking up too many wrong trees; in this long thread
> I've already seen you & Andrey trying to develop (erroneous)
> variants of flood fill. If you have fun in it, I won't spoil
> that any longer.

OK, but one step at a time then!

How do you/what do you use to do this

for pixel (x y) in image; do
  if (pixel.color == BLACK) { pixel.color = GREEN }
done

(made up syntax)

?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal


Reply to: