Package net.imglib2.outofbounds
Class OutOfBoundsMirrorExpWindowing<T extends NumericType<T>>
java.lang.Object
net.imglib2.outofbounds.AbstractOutOfBoundsMirror<T>
net.imglib2.outofbounds.OutOfBoundsMirrorSingleBoundary<T>
net.imglib2.outofbounds.OutOfBoundsMirrorExpWindowing<T>
- Type Parameters:
T-
- All Implemented Interfaces:
EuclideanSpace,Localizable,Bounded,OutOfBounds<T>,Positionable,RandomAccess<T>,RealLocalizable,Sampler<T>
public class OutOfBoundsMirrorExpWindowing<T extends NumericType<T>>
extends OutOfBoundsMirrorSingleBoundary<T>
Adds a exponential windowing to the mirrored content outside the Interval
boundaries
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Field Summary
FieldsFields inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsMirror
dimension, dimIsOutOfBounds, inc, isOutOfBounds, min, n, outOfBoundsRandomAccess, p, zeroMinPos -
Constructor Summary
ConstructorsConstructorDescriptionOutOfBoundsMirrorExpWindowing(F f, int[] fadeOutDistance, float exponent) OutOfBoundsMirrorExpWindowing(OutOfBoundsMirrorExpWindowing<T> outOfBounds) -
Method Summary
Modifier and TypeMethodDescriptioncopy()get()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.protected final floatgetWeight(long[] zeroMinPosition) protected static final float[][]preComputeWeights(int n, int[] fadeOutDistance, float exponent) Methods inherited from class net.imglib2.outofbounds.OutOfBoundsMirrorSingleBoundary
bck, fwd, setPositionMethods inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsMirror
checkOutOfBounds, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, isOutOfBounds, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, toString
-
Field Details
-
max
protected final long[] max
-
-
Constructor Details
-
OutOfBoundsMirrorExpWindowing
-
OutOfBoundsMirrorExpWindowing
public OutOfBoundsMirrorExpWindowing(F f, int[] fadeOutDistance, float exponent)
-
-
Method Details
-
preComputeWeights
protected static final float[][] preComputeWeights(int n, int[] fadeOutDistance, float exponent) -
get
Description copied from interface:SamplerAccess the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.- Specified by:
getin interfaceSampler<T extends NumericType<T>>- Overrides:
getin classAbstractOutOfBoundsMirror<T extends NumericType<T>>
-
getWeight
protected final float getWeight(long[] zeroMinPosition) -
copy
- Specified by:
copyin interfaceOutOfBounds<T extends NumericType<T>>- Specified by:
copyin interfaceSampler<T extends NumericType<T>>- Overrides:
copyin classOutOfBoundsMirrorSingleBoundary<T extends NumericType<T>>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for anArrayCursorfor example)
-
copyRandomAccess
- Specified by:
copyRandomAccessin interfaceRandomAccess<T extends NumericType<T>>- Overrides:
copyRandomAccessin classOutOfBoundsMirrorSingleBoundary<T extends NumericType<T>>
-