exit() idea for G'MIC
I can’t seem to find the thread about this, but another user wanted to have a thread exit out of processing pixels, and now I would like for this to be a thing too. As I was looking at my rep_mode and rep_mode_blend, I realized that if the number of a specific color is at least 1 more than half of the image dimension, then that is the most frequent color, and if I had something like exit(return_value), I can stop the built-in loop and exit out. The funny thing is that I actually did something like this with copy() by mistake, and exit out. I don’t know how, but I’d definitely like to do that.
Read more here: Source link
