public static void fillBand ( InterleavedF64 input , int band , double value ) { final int numBands = input . numBands ; for ( int y = 0 ; y < input . height ; y ++ ) { int index = input . getStartIndex ( ) + y * input . getStride ( ) + band ; int end = index + input . width * numBands - band ; for ( ; index < end ; index += numBands ) { input . data [ index ] = value ; } } }
Fills one band in the image with the specified value