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 theSampler
points at.protected final float
getWeight
(long[] zeroMinPosition) protected static final 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
-
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: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
- 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
- Specified by:
copyRandomAccess
in interfaceRandomAccess<T extends NumericType<T>>
- Overrides:
copyRandomAccess
in classOutOfBoundsMirrorSingleBoundary<T extends NumericType<T>>
-