updateHistogramX(x-x0,y-y0,input); output.data[indexOutput++] = (input.data[indexInput++]&0xFF) <= otsu.threshold ? a : b;
updateHistogramX(x-x0,0,input); applyToBlock(x,0,x+1,y0,input,output); updateHistogramX(x1-x0,0,input); applyToBlock(x1,0,input.width,y0+1,input,output); updateHistogramX(x-x0,y1-y0,input); applyToBlock(x,y1,x+1,input.height,input,output);