applyToBlock(0,0,x0+1,y0+1,input,output); applyToBlock(x,0,x+1,y0,input,output); applyToBlock(x1,0,input.width,y0+1,input,output); applyToBlock(x1,y,input.width,y+1,input,output); applyToBlock(x1,y1,input.width,input.height,input,output); applyToBlock(0,y,x0,y+1,input,output); applyToBlock(0,y1,x0+1,input.height,input,output); applyToBlock(x,y1,x+1,input.height,input,output);