@Override public void setOutside(int x, int y, double[] pixel) { image.unsafe_set(colWrap.getIndex(x) , rowWrap.getIndex(y),pixel); } }
/** * Sets the pixel's value for all the bands using an array. * * @param x pixel coordinate. * @param y pixel coordinate. * @param value The pixel's new value for each band. */ public void set(int x, int y, double... value) { if (!isInBounds(x, y)) throw new ImageAccessException("Requested pixel is out of bounds"); unsafe_set(x,y,value); }
public void set( int x , int y , double[] pixel ) { if (image.isInBounds(x, y)) { image.unsafe_set(x, y, pixel); } else { setOutside(x, y, pixel); } }