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
Fields Modifier and Type Field Description protected long[]
max
-
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()
OutOfBoundsMirrorExpWindowing<T>
copyRandomAccess()
T
get()
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.protected float
getWeight(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, isOutOfBounds, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, toString
-
-
-
-
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:Sampler
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.- Specified by:
get
in interfaceSampler<T extends NumericType<T>>
- Overrides:
get
in classAbstractOutOfBoundsMirror<T extends NumericType<T>>
-
getWeight
protected final float getWeight(long[] zeroMinPosition)
-
copy
public OutOfBoundsMirrorExpWindowing<T> copy()
- Specified by:
copy
in interfaceOutOfBounds<T extends NumericType<T>>
- Specified by:
copy
in interfaceSampler<T extends NumericType<T>>
- Overrides:
copy
in classOutOfBoundsMirrorSingleBoundary<T extends NumericType<T>>
- Returns:
- - A new
Sampler
in 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 anArrayCursor
for example)
-
copyRandomAccess
public OutOfBoundsMirrorExpWindowing<T> copyRandomAccess()
- Specified by:
copyRandomAccess
in interfaceRandomAccess<T extends NumericType<T>>
- Overrides:
copyRandomAccess
in classOutOfBoundsMirrorSingleBoundary<T extends NumericType<T>>
-
-