@Override public void convert( final T input, final T output ) { output.set( input ); } }
@Override public void convert( final T input, final T output ) { output.set( input ); } }
@Override public void setValue( final T value ) { this.value.set( value ); }
@Override public void setValue( final T value ) { this.value.set( value ); }
@Override public void compute(final T output) { output.set(constant); } }
@Override public void setValue( final T value ) { this.value.set( value ); }
@Override public void setValue( final T value ) { this.value.set( value ); }
@Override public void write( final T source, final T target ) { target.set( source ); } }
@Override public void convert( A input, T output ) { output.set( input.get( i ) ); }
/** * Sets the possibly converted value at the current location * * @param type * - the value */ public void set( final T type ) { randomAccess.get().set( type ); } }
@Override public void convert( A input, T output ) { output.set( input.get( i ) ); }
/** * Sets the possibly converted value at the current location * * @param type - the value */ public void set( final T type ) { randomAccess.get().set( type ); } }
@Override public void compute(final I input, final O output) { if (!input.get()) output.set(defaultVal); }
private BoundaryPixel createBoundaryPixel( final Localizable position, final T value, final int nextNeighborIndex ) { if ( reusableBoundaryPixels.isEmpty() ) return new BoundaryPixel( position, value, nextNeighborIndex ); final BoundaryPixel p = reusableBoundaryPixels.pop(); p.setPosition( position ); p.value.set( value ); p.nextNeighborIndex = nextNeighborIndex; return p; }
private BoundaryPixel createBoundaryPixel( final Localizable position, final T value, final int nextNeighborIndex ) { if ( reusableBoundaryPixels.isEmpty() ) return new BoundaryPixel( position, value, nextNeighborIndex ); else { final BoundaryPixel p = reusableBoundaryPixels.pop(); p.setPosition( position ); p.value.set( value ); p.nextNeighborIndex = nextNeighborIndex; return p; } }
@Override public T get() { t.set( source.get() ); t.mul( scalingFunction.applyAsDouble( source ) ); return t; }
private void writeLine() { final int max = buflen - k1k1; for ( int i = k1k1; i < max; ++i ) { b1.updateIndex( i ); out.get().set( b1 ); out.fwd( d ); } } }
private static < A extends Type< A > > ListImg< A > copyWithType( final ListImg< A > img ) { final ListImg< A > copy = new ListImg< A >( img.dimension, img.firstElement().createVariable() ); final ListCursor< A > source = img.cursor(); final ListCursor< A > target = copy.cursor(); while ( source.hasNext() ) target.next().set( source.next() ); return copy; }
private static < A extends Type< A > > ListImg< A > copyWithType( final ListImg< A > img ) { final ListImg< A > copy = new ListImg< A >( img.dimension, img.firstElement().createVariable() ); final ListCursor< A > source = img.cursor(); final ListCursor< A > target = copy.cursor(); while ( source.hasNext() ) target.next().set( source.next() ); return copy; }