public void setValue ( final int channel , final int x , final int y , final double value ) { this . data [ channel ] [ y * this . width + x ] = value ; }
Sets value at the specified position for the specified channel . No bounds checks will be performed positions outside of this images dimension can either result in a value for a different position or an ArrayIndexOutOfBoundsException .