// Benchmark result: 6.8ms void threshold(Img8u &image, icl8u t){ ICLASSERT_RETURN(image.getChannels() == 3); Channel cs[3]; image.extractChannels(cs); for(int x=0;xt); } } } }