private static void compute ( Kernel kernel , int [ ] in , int [ ] out , int width , int height , boolean alpha , int edge ) { final float [ ] matrix = kernel . getMatrix ( ) ; final int cols = kernel . getWidth ( ) ; final int cols2 = cols / 2 ; for ( int y = 0 ; y < height ; y ++ ) { int index = y ; final int ioffset = y * width ; for ( int x = 0 ; x < width ; x ++ ) { compute ( matrix , in , out , x , index , ioffset , cols2 , width , alpha , edge ) ; index += height ; } } }
Compute blur .