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>, Typed<T>
public class OutOfBoundsMirrorExpWindowing<T extends NumericType<T>>
extends OutOfBoundsMirrorSingleBoundary<T>
Adds a exponential windowing to the mirrored content outside the Interval
boundaries
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final float(package private) final int[]protected final long[](package private) final T(package private) final float[][]Fields inherited from class AbstractOutOfBoundsMirror
dimension, dimIsOutOfBounds, inc, isOutOfBounds, min, n, outOfBoundsRandomAccess, p, zeroMinPos -
Constructor Summary
ConstructorsModifierConstructorDescription<F extends Interval & RandomAccessible<T>>OutOfBoundsMirrorExpWindowing(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 OutOfBoundsMirrorSingleBoundary
bck, fwd, setPositionMethods inherited from class AbstractOutOfBoundsMirror
checkOutOfBounds, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, getType, isOutOfBounds, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Localizable
localize, localize, positionAsLongArray, positionAsPointMethods inherited from interface RandomAccess
copyRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGetMethods inherited from interface RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
Field Details
-
type
-
weights
final float[][] weights -
max
protected final long[] max -
exponent
final float exponent -
fadeOutDistance
final int[] fadeOutDistance
-
-
Constructor Details
-
OutOfBoundsMirrorExpWindowing
-
OutOfBoundsMirrorExpWindowing
public <F extends Interval & RandomAccessible<T>> 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 interfaceRandomAccess<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)
-