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>,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
Fields Modifier and Type Field Description (package private) floatexponent(package private) int[]fadeOutDistanceprotected long[]max(package private) Ttype(package private) float[][]weights-
Fields inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsMirror
dimension, dimIsOutOfBounds, inc, isOutOfBounds, min, n, outOfBoundsRandomAccess, p, zeroMinPos
-
-
Constructor Summary
Constructors Constructor Description OutOfBoundsMirrorExpWindowing(F f, int[] fadeOutDistance, float exponent)OutOfBoundsMirrorExpWindowing(OutOfBoundsMirrorExpWindowing<T> outOfBounds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OutOfBoundsMirrorExpWindowing<T>copy()Tget()Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSamplerpoints at.protected floatgetWeight(long[] zeroMinPosition)protected static float[][]preComputeWeights(int n, int[] fadeOutDistance, float exponent)-
Methods inherited from class net.imglib2.outofbounds.OutOfBoundsMirrorSingleBoundary
bck, fwd, setPosition
-
Methods inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsMirror
checkOutOfBounds, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, getType, isOutOfBounds, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Localizable
localize, localize, positionAsLongArray, positionAsPoint
-
Methods inherited from interface net.imglib2.RandomAccess
copyRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGet
-
Methods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Field Detail
-
type
final T extends NumericType<T> type
-
weights
final float[][] weights
-
max
protected final long[] max
-
exponent
final float exponent
-
fadeOutDistance
final int[] fadeOutDistance
-
-
Constructor Detail
-
OutOfBoundsMirrorExpWindowing
public OutOfBoundsMirrorExpWindowing(OutOfBoundsMirrorExpWindowing<T> outOfBounds)
-
OutOfBoundsMirrorExpWindowing
public OutOfBoundsMirrorExpWindowing(F f, int[] fadeOutDistance, float exponent)
-
-
Method Detail
-
preComputeWeights
protected static final float[][] preComputeWeights(int n, int[] fadeOutDistance, float exponent)
-
get
public T 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
public OutOfBoundsMirrorExpWindowing<T> 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)
-
-