public class TransformNamespace extends AbstractNamespace
Views
.Constructor and Description |
---|
TransformNamespace() |
Modifier and Type | Method and Description |
---|---|
<T> MixedTransformView<T> |
addDimensionView(RandomAccessible<T> input)
Create view which adds a dimension to the source
RandomAccessible . |
<T> IntervalView<T> |
addDimensionView(RandomAccessibleInterval<T> input,
long min,
long max)
Create view which adds a dimension to the source
RandomAccessibleInterval . |
<N extends NumericType<N>> |
collapseNumericView(RandomAccessible<N> input,
int numChannels)
Collapse the nth dimension of an n
-dimensional
RandomAccessibleInterval <T extends
NumericType <T>> into an (n-1)-dimensional
RandomAccessibleInterval <NumericComposite <T>> |
<N extends NumericType<N>> |
collapseNumericView(RandomAccessibleInterval<N> input)
Collapse the nth dimension of an n
-dimensional
RandomAccessibleInterval <T extends
NumericType <T>> into an (n-1)-dimensional
RandomAccessibleInterval <NumericComposite <T>> |
<R extends RealType<R>> |
collapseRealView(RandomAccessible<R> input,
int numChannels)
Collapse the nth dimension of an n
-dimensional
RandomAccessible <T extends RealType
<T>> into an (n-1)-dimensional RandomAccessible
<RealComposite <T>> |
<T extends Type<T>,R extends RealType<R>> |
collapseRealView(RandomAccessibleInterval<T> input)
Collapse the nth dimension of an n
-dimensional
RandomAccessibleInterval <T extends RealType
<T>> into an (n-1)-dimensional
RandomAccessibleInterval <RealComposite <T>> |
<T> CompositeView<T,? extends GenericComposite<T>> |
collapseView(RandomAccessible<T> input)
Collapse the nth dimension of an n
-dimensional
RandomAccessible <T> into an ( n
-1)-dimensional RandomAccessible < GenericComposite
<T>> |
<T> CompositeIntervalView<T,? extends GenericComposite<T>> |
collapseView(RandomAccessibleInterval<T> input)
Collapse the nth dimension of an n
-dimensional
RandomAccessibleInterval <T> into an ( n
-1)-dimensional RandomAccessibleInterval <
GenericComposite <T>> |
<T extends Type<T>> |
concatenateView(List<? extends RandomAccessibleInterval<T>> source,
int concatenationAxis)
Concatenate
List of RandomAccessibleInterval along the
specified axis. |
<T extends Type<T>> |
concatenateView(List<? extends RandomAccessibleInterval<T>> source,
int concatenationAxis,
StackView.StackAccessMode mode)
Concatenate
List of RandomAccessibleInterval along the
specified axis. |
<T extends Type<T>> |
crop(ImgPlus<T> in,
Interval interval)
Executes the "crop" operation on the given arguments.
|
<T extends Type<T>> |
crop(ImgPlus<T> in,
Interval interval,
boolean dropSingleDimensions)
Executes the "crop" operation on the given arguments.
|
<T> RandomAccessibleInterval<T> |
crop(RandomAccessibleInterval<T> in,
Interval interval)
Executes the "crop" operation on the given arguments.
|
<T> RandomAccessibleInterval<T> |
crop(RandomAccessibleInterval<T> in,
Interval interval,
boolean dropSingleDimensions)
Executes the "crop" operation on the given arguments.
|
<T> RandomAccessibleInterval<T> |
dropSingletonDimensionsView(RandomAccessibleInterval<T> input)
Removes all unit dimensions (dimensions with size one) from the
RandomAccessibleInterval
|
<T,F extends RandomAccessibleInterval<T>> |
extendBorderView(F input)
Extend a RandomAccessibleInterval with an out-of-bounds strategy to repeat
border pixels.
|
<T,F extends RandomAccessibleInterval<T>> |
extendMirrorDoubleView(F input)
Extend a RandomAccessibleInterval with a mirroring out-of-bounds strategy.
|
<T extends Type<T>,F extends RandomAccessibleInterval<T>> |
extendMirrorSingleView(F input)
Extend a RandomAccessibleInterval with a mirroring out-of-bounds strategy.
|
<T,F extends RandomAccessibleInterval<T>> |
extendPeriodicView(F input)
Extend a RandomAccessibleInterval with a periodic out-of-bounds strategy.
|
<T extends RealType<T>,F extends RandomAccessibleInterval<T>> |
extendRandomView(F input,
double min,
double max)
Extend a RandomAccessibleInterval with a random-value out-of-bounds
strategy.
|
<T extends Type<T>,F extends RandomAccessibleInterval<T>> |
extendValueView(F input,
T value)
Extend a RandomAccessibleInterval with a constant-value out-of-bounds
strategy.
|
<T,F extends RandomAccessibleInterval<T>> |
extendView(F input,
OutOfBoundsFactory<T,? super F> factory)
Extend a RandomAccessibleInterval with an out-of-bounds strategy.
|
<T extends NumericType<T>,F extends RandomAccessibleInterval<T>> |
extendZeroView(F input)
Extend a RandomAccessibleInterval with a constant-value out-of-bounds
strategy where the constant value is the zero-element of the data type.
|
<T> IterableInterval<T> |
flatIterableView(RandomAccessibleInterval<T> input)
Return an
IterableInterval having FlatIterationOrder . |
String |
getName() |
<T> MixedTransformView<T> |
hyperSliceView(RandomAccessible<T> input,
int d,
long pos)
take a (n-1)-dimensional slice of a n-dimensional view, fixing d-component
of coordinates to pos.
|
<T> IntervalView<T> |
hyperSliceView(RandomAccessibleInterval<T> input,
int d,
long pos)
take a (n-1)-dimensional slice of a n-dimensional view, fixing d-component
of coordinates to pos and preserving interval bounds.
|
<T,I extends EuclideanSpace> |
interpolateView(I input,
InterpolatorFactory<T,I> factory)
Returns a
RealRandomAccessible using interpolation |
<T> IntervalView<T> |
intervalView(RandomAccessible<T> input,
Interval interval)
Define an interval on a RandomAccessible.
|
<T> IntervalView<T> |
intervalView(RandomAccessible<T> input,
long[] min,
long... max)
Define an interval on a RandomAccessible.
|
<T> MixedTransformView<T> |
invertAxisView(RandomAccessible<T> input,
int d)
Invert the d-axis.
|
<T> IntervalView<T> |
invertAxisView(RandomAccessibleInterval<T> input,
int d)
Invert the d-axis while preserving interval bounds.
|
<T> IntervalView<T> |
offsetView(RandomAccessible<T> input,
Interval interval)
Define an interval on a RandomAccessible and translate it such that the min
corner is at the origin.
|
<T> MixedTransformView<T> |
offsetView(RandomAccessible<T> input,
long... offset)
Translate such that pixel at offset in randomAccessible is at the origin in
the resulting view.
|
<T> IntervalView<T> |
offsetView(RandomAccessible<T> input,
long[] offset,
long... dimension)
Define an interval on a RandomAccessible and translate it such that the min
corner is at the origin.
|
<T> IntervalView<T> |
permuteCoordinatesInverseView(RandomAccessibleInterval<T> input,
int... permutation)
Inverse Bijective permutation of the integer coordinates in each dimension
of a
RandomAccessibleInterval . |
<T> IntervalView<T> |
permuteCoordinatesInverseView(RandomAccessibleInterval<T> input,
int[] permutation,
int d)
Inverse bijective permutation of the integer coordinates of one dimension
of a
RandomAccessibleInterval . |
<T> IntervalView<T> |
permuteCoordinatesView(RandomAccessibleInterval<T> input,
int... permutation)
Bijective permutation of the integer coordinates in each dimension of a
RandomAccessibleInterval . |
<T> IntervalView<T> |
permuteCoordinatesView(RandomAccessibleInterval<T> input,
int[] permutation,
int d)
Bijective permutation of the integer coordinates of one dimension of a
RandomAccessibleInterval . |
<T> MixedTransformView<T> |
permuteView(RandomAccessible<T> input,
int fromAxis,
int toAxis)
Create view with permuted axes.
|
<T> IntervalView<T> |
permuteView(RandomAccessibleInterval<T> input,
int fromAxis,
int toAxis)
Create view with permuted axes while preserving interval bounds.
|
<T,V> IterableInterval<V> |
project(IterableInterval<V> out,
RandomAccessibleInterval<T> in,
UnaryComputerOp<Iterable<T>,V> method,
int dim)
Executes the "project" operation on the given arguments.
|
<T> RandomAccessibleOnRealRandomAccessible<T> |
rasterView(RealRandomAccessible<T> input)
Turns a
RealRandomAccessible into a RandomAccessible ,
providing RandomAccess at integer coordinates. |
<T> MixedTransformView<T> |
rotateView(RandomAccessible<T> input,
int fromAxis,
int toAxis)
Create view that is rotated by 90 degrees.
|
<T> IntervalView<T> |
rotateView(RandomAccessibleInterval<T> input,
int fromAxis,
int toAxis)
Create view that is rotated by 90 degrees and preserves interval bounds.
|
<T extends RealType<T>> |
scaleView(RandomAccessibleInterval<T> in,
double[] scaleFactors,
InterpolatorFactory<T,RandomAccessible<T>> interpolator)
Executes the "scale" operation on the given arguments.
|
<T extends RealType<T>> |
scaleView(RandomAccessibleInterval<T> in,
double[] scaleFactors,
InterpolatorFactory<T,RandomAccessible<T>> interpolator,
OutOfBoundsFactory<T,RandomAccessible<T>> outOfBoundsFactory)
Executes the "scale" operation on the given arguments while preserving
interval bounds.
|
<T extends Type<T>> |
shearView(RandomAccessible<T> input,
Interval interval,
int shearDimension,
int referenceDimension)
Positive shear transform of a RandomAccessible using
ShearTransform
, i.e. |
<T extends Type<T>> |
shearView(RandomAccessible<T> input,
int shearDimension,
int referenceDimension)
Positive shear transform of a RandomAccessible using
ShearTransform
, i.e. |
<T extends Type<T>> |
stackView(List<? extends RandomAccessibleInterval<T>> input)
Form a (n+1)-dimensional
RandomAccessibleInterval by
stacking n-dimensional RandomAccessibleInterval s. |
<T> RandomAccessibleInterval<T> |
stackView(List<? extends RandomAccessibleInterval<T>> input,
StackView.StackAccessMode stackAccessMode)
Form a (n+1)-dimensional
RandomAccessibleInterval by
stacking n-dimensional RandomAccessibleInterval s. |
<T> SubsampleView<T> |
subsampleView(RandomAccessible<T> input,
long... steps)
Sample only every stepdth value of a source
RandomAccessible . |
<T> SubsampleView<T> |
subsampleView(RandomAccessible<T> input,
long step)
Sample only every stepth value of a source
RandomAccessible . |
<T> SubsampleIntervalView<T> |
subsampleView(RandomAccessibleInterval<T> input,
long... steps)
Sample only every stepdth value of a source
RandomAccessible while preserving interval bounds. |
<T> SubsampleIntervalView<T> |
subsampleView(RandomAccessibleInterval<T> input,
long step)
Sample only every stepth value of a source
RandomAccessible while preserving interval bounds. |
<T> MixedTransformView<T> |
translateView(RandomAccessible<T> input,
long... translation)
Translate the source view by the given translation vector.
|
<T> IntervalView<T> |
translateView(RandomAccessibleInterval<T> input,
long... translation)
Translate the source view by the given translation vector, preserving
interval bounds.
|
<T> IntervalView<T> |
unshearView(RandomAccessible<T> input,
Interval interval,
int shearDimension,
int referenceDimension)
Negative shear transform of a RandomAccessible using
InverseShearTransform , i.e. |
<T> TransformView<T> |
unshearView(RandomAccessible<T> input,
int shearDimension,
int referenceDimension)
Negative shear transform of a RandomAccessible using
InverseShearTransform , i.e. |
<T> IntervalView<T> |
zeroMinView(RandomAccessibleInterval<T> input)
Translate the source such that the upper left corner is at the origin
|
ops, setEnvironment
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
context, getContext, setContext
public <T> IntervalView<T> addDimensionView(RandomAccessibleInterval<T> input, long min, long max)
RandomAccessibleInterval
. The Interval
boundaries in the
additional dimension are set to the specified values. The additional
dimension is the last dimension. For example, an XYZ view is created for an
XY source. When accessing an XYZ sample in the view, the final coordinate
is discarded and the source XY sample is accessed.input
- the sourcemin
- Interval min in the additional dimension.max
- Interval max in the additional dimension.public <T> MixedTransformView<T> addDimensionView(RandomAccessible<T> input)
RandomAccessible
.
The additional dimension is the last dimension. For example, an XYZ view is
created for an XY source. When accessing an XYZ sample in the view, the
final coordinate is discarded and the source XY sample is accessed.input
- the sourcepublic <T> CompositeView<T,? extends GenericComposite<T>> collapseView(RandomAccessible<T> input)
RandomAccessible
<T> into an ( n
-1)-dimensional RandomAccessible
< GenericComposite
<T>>input
- the sourceCompositeIntervalView
of
GenericComposites
public <T> CompositeIntervalView<T,? extends GenericComposite<T>> collapseView(RandomAccessibleInterval<T> input)
RandomAccessibleInterval
<T> into an ( n
-1)-dimensional RandomAccessibleInterval
<
GenericComposite
<T>>input
- the sourceCompositeIntervalView
of
GenericComposites
public <N extends NumericType<N>> CompositeView<N,NumericComposite<N>> collapseNumericView(RandomAccessible<N> input, int numChannels)
RandomAccessibleInterval
<T extends
NumericType
<T>> into an (n-1)-dimensional
RandomAccessibleInterval
<NumericComposite
<T>>input
- the sourcenumChannels
- the number of channels that the NumericComposite
will consider when performing calculationsCompositeIntervalView
of
NumericComposites
public <N extends NumericType<N>> CompositeIntervalView<N,NumericComposite<N>> collapseNumericView(RandomAccessibleInterval<N> input)
RandomAccessibleInterval
<T extends
NumericType
<T>> into an (n-1)-dimensional
RandomAccessibleInterval
<NumericComposite
<T>>input
- the sourceCompositeIntervalView
of
NumericComposites
public <T extends Type<T>> ImgPlus<T> crop(ImgPlus<T> in, Interval interval)
in
- interval
- public <T extends Type<T>> ImgPlus<T> crop(ImgPlus<T> in, Interval interval, boolean dropSingleDimensions)
in
- interval
- dropSingleDimensions
- public <T> RandomAccessibleInterval<T> crop(RandomAccessibleInterval<T> in, Interval interval)
in
- interval
- public <T> RandomAccessibleInterval<T> crop(RandomAccessibleInterval<T> in, Interval interval, boolean dropSingleDimensions)
in
- interval
- dropSingleDimensions
- public <T> RandomAccessibleInterval<T> dropSingletonDimensionsView(RandomAccessibleInterval<T> input)
input
- the sourcepublic <T,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendView(F input, OutOfBoundsFactory<T,? super F> factory)
input
- the interval to extend.factory
- the out-of-bounds strategy.public <T,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendBorderView(F input)
input
- the interval to extend.OutOfBoundsBorder
public <T,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendMirrorDoubleView(F input)
input
- the interval to extend.OutOfBoundsMirrorDoubleBoundary
public <T extends Type<T>,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendMirrorSingleView(F input)
input
- the interval to extend.OutOfBoundsMirrorSingleBoundary
public <T,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendPeriodicView(F input)
input
- the interval to extend.OutOfBoundsPeriodic
public <T extends RealType<T>,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendRandomView(F input, double min, double max)
input
- the interval to extend.min
- the minimal random valuemax
- the maximal random valueOutOfBoundsRandomValue
public <T extends Type<T>,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendValueView(F input, T value)
input
- the interval to extend.OutOfBoundsConstantValue
public <T extends NumericType<T>,F extends RandomAccessibleInterval<T>> ExtendedRandomAccessibleInterval<T,F> extendZeroView(F input)
input
- the interval to extend.OutOfBoundsConstantValue
public <T> IterableInterval<T> flatIterableView(RandomAccessibleInterval<T> input)
IterableInterval
having FlatIterationOrder
. If
the passed RandomAccessibleInterval
is already an
IterableInterval
with FlatIterationOrder
then it is
returned directly (this is the case for ArrayImg
). If not, then an
IterableRandomAccessibleInterval
is created.input
- the sourceIterableInterval
with FlatIterationOrder
public <T> MixedTransformView<T> hyperSliceView(RandomAccessible<T> input, int d, long pos)
input
- d
- pos
- public <T> IntervalView<T> hyperSliceView(RandomAccessibleInterval<T> input, int d, long pos)
input
- d
- pos
- public <T,I extends EuclideanSpace> RealRandomAccessible<T> interpolateView(I input, InterpolatorFactory<T,I> factory)
RealRandomAccessible
using interpolationinput
- the EuclideanSpace
to be interpolatedfactory
- the InterpolatorFactory
to provide interpolators for
sourcepublic <T> MixedTransformView<T> invertAxisView(RandomAccessible<T> input, int d)
input
- the sourced
- the axis to invertpublic <T> IntervalView<T> invertAxisView(RandomAccessibleInterval<T> input, int d)
input
- the sourced
- the axis to invertpublic <T> MixedTransformView<T> offsetView(RandomAccessible<T> input, long... offset)
input
- the sourceoffset
- offset of the source view. The pixel at offset becomes the
origin of resulting view.public <T> MixedTransformView<T> permuteView(RandomAccessible<T> input, int fromAxis, int toAxis)
input
- fromAxis
- toAxis
- public <T> IntervalView<T> permuteView(RandomAccessibleInterval<T> input, int fromAxis, int toAxis)
input
- fromAxis
- toAxis
- public <T> IntervalView<T> permuteCoordinatesInverseView(RandomAccessibleInterval<T> input, int[] permutation, int d)
RandomAccessibleInterval
.input
- must have dimension(dimension) == permutation.lengthpermutation
- must be a bijective permutation over its index set, i.e.
for a lut of length n, the sorted content the array must be
[0,...,n-1] which is the index set of the lut.d
- dimension index to be permutedIntervalView
of permuted source.public <T> IntervalView<T> permuteCoordinatesInverseView(RandomAccessibleInterval<T> input, int... permutation)
RandomAccessibleInterval
.input
- must be an n-dimensional hypercube with each
dimension being of the same size as the permutation arraypermutation
- must be a bijective permutation over its index set, i.e.
for a LUT of length n, the sorted content the array must be
[0,...,n-1] which is the index set of the LUT.IntervalView
of permuted source.public <T> IntervalView<T> permuteCoordinatesView(RandomAccessibleInterval<T> input, int... permutation)
RandomAccessibleInterval
.input
- must be an n-dimensional hypercube with each
dimension being of the same size as the permutation arraypermutation
- must be a bijective permutation over its index set, i.e.
for a LUT of length n, the sorted content the array must be
[0,...,n-1] which is the index set of the LUT.IntervalView
of permuted source.public <T> IntervalView<T> permuteCoordinatesView(RandomAccessibleInterval<T> input, int[] permutation, int d)
RandomAccessibleInterval
.input
- must have dimension(dimension) == permutation.lengthpermutation
- must be a bijective permutation over its index set, i.e.
for a lut of length n, the sorted content the array must be
[0,...,n-1] which is the index set of the lut.d
- dimension index to be permutedIntervalView
of permuted source.public <T,V> IterableInterval<V> project(IterableInterval<V> out, RandomAccessibleInterval<T> in, UnaryComputerOp<Iterable<T>,V> method, int dim)
out
- in
- method
- dim
- public <T> RandomAccessibleOnRealRandomAccessible<T> rasterView(RealRandomAccessible<T> input)
RealRandomAccessible
into a RandomAccessible
,
providing RandomAccess
at integer coordinates.input
- the RealRandomAccessible
to be rasterized.RandomAccessibleOnRealRandomAccessible
wrapping source.interpolateView(net.imglib2.EuclideanSpace,
net.imglib2.interpolation.InterpolatorFactory)
public <T extends Type<T>,R extends RealType<R>> CompositeIntervalView<R,RealComposite<R>> collapseRealView(RandomAccessibleInterval<T> input)
RandomAccessibleInterval
<T extends RealType
<T>> into an (n-1)-dimensional
RandomAccessibleInterval
<RealComposite
<T>>input
- the sourceCompositeIntervalView
of
RealComposites
public <R extends RealType<R>> CompositeView<R,RealComposite<R>> collapseRealView(RandomAccessible<R> input, int numChannels)
RandomAccessible
<T extends RealType
<T>> into an (n-1)-dimensional RandomAccessible
<RealComposite
<T>>input
- the sourcenumChannels
- the number of channels that the RealComposite
will consider when performing calculationsCompositeView
of
RealComposites
public <T extends RealType<T>> RandomAccessibleInterval<T> scaleView(RandomAccessibleInterval<T> in, double[] scaleFactors, InterpolatorFactory<T,RandomAccessible<T>> interpolator)
in
- scaleFactors
- interpolator
- public <T extends RealType<T>> RandomAccessibleInterval<T> scaleView(RandomAccessibleInterval<T> in, double[] scaleFactors, InterpolatorFactory<T,RandomAccessible<T>> interpolator, OutOfBoundsFactory<T,RandomAccessible<T>> outOfBoundsFactory)
in
- scaleFactors
- interpolator
- outOfBoundsFactory
- public <T extends Type<T>> TransformView<T> shearView(RandomAccessible<T> input, int shearDimension, int referenceDimension)
ShearTransform
, i.e. c[ shearDimension ] = c[ shearDimension ] + c[ referenceDimension ]input
- input, e.g. extended RandomAccessibleInterval
shearDimension
- dimension to be shearedreferenceDimension
- reference dimension for shearTransformView
containing the result.public <T extends Type<T>> IntervalView<T> shearView(RandomAccessible<T> input, Interval interval, int shearDimension, int referenceDimension)
ShearTransform
, i.e. c[ shearDimension ] = c[ shearDimension ] + c[ referenceDimension ]input
- input, e.g. extended RandomAccessibleInterval
interval
- original intervalshearDimension
- dimension to be shearedreferenceDimension
- reference dimension for shearIntervalView
containing the result. The returned interval's
dimension are determined by applying the
ShearTransform.transform(net.imglib2.transform.integer.BoundingBox)
method on the input interval.public <T extends Type<T>> RandomAccessibleInterval<T> stackView(List<? extends RandomAccessibleInterval<T>> input)
RandomAccessibleInterval
by
stacking n-dimensional RandomAccessibleInterval
s.input
- a list of n-dimensional
RandomAccessibleInterval
of identical sizes.RandomAccessibleInterval
where
the final dimension is the index of the hyperslice.public <T> RandomAccessibleInterval<T> stackView(List<? extends RandomAccessibleInterval<T>> input, StackView.StackAccessMode stackAccessMode)
RandomAccessibleInterval
by
stacking n-dimensional RandomAccessibleInterval
s.stackAccessMode
- describes how a RandomAccess
on the
(n+1) -dimensional StackView
maps position
changes into position changes of the underlying n
-dimensional RandomAccess
es.input
- a list of n-dimensional
RandomAccessibleInterval
of identical sizes.RandomAccessibleInterval
where
the final dimension is the index of the hyperslice.public <T> SubsampleView<T> subsampleView(RandomAccessible<T> input, long step)
RandomAccessible
. This is effectively an integer scaling
transformation.input
- the sourcestep
- the subsampling step sizeRandomAccessible
public <T> SubsampleIntervalView<T> subsampleView(RandomAccessibleInterval<T> input, long step)
RandomAccessible
while preserving interval bounds. This is
effectively an integer scaling transformation.input
- step
- public <T> MixedTransformView<T> translateView(RandomAccessible<T> input, long... translation)
input
- the sourcetranslation
- translation vector of the source view. The pixel at
x in the source view becomes (x + translation)
in the resulting view.public <T> IntervalView<T> translateView(RandomAccessibleInterval<T> input, long... translation)
input
- the sourcetranslation
- translation vector of the source view. The pixel at
x in the source view becomes (x + translation)
in the resulting view.public <T> TransformView<T> unshearView(RandomAccessible<T> input, int shearDimension, int referenceDimension)
InverseShearTransform
, i.e. c[ shearDimension ] = c[ shearDimension
] - c[ referenceDimension ]input
- input, e.g. extended RandomAccessibleInterval
shearDimension
- dimension to be shearedreferenceDimension
- reference dimension for shearTransformView
containing the result.public <T> IntervalView<T> unshearView(RandomAccessible<T> input, Interval interval, int shearDimension, int referenceDimension)
InverseShearTransform
, i.e. c[ shearDimension ] = c[ shearDimension
] - c[ referenceDimension ]input
- input, e.g. extended RandomAccessibleInterval
interval
- original intervalshearDimension
- dimension to be shearedreferenceDimension
- reference dimension for shearIntervalView
containing the result. The returned interval's
dimension are determined by applying the
ShearTransform.transform(net.imglib2.transform.integer.BoundingBox)
method on the input interval.public <T> IntervalView<T> intervalView(RandomAccessible<T> input, Interval interval)
input
- the sourceinterval
- interval boundaries.public <T> IntervalView<T> zeroMinView(RandomAccessibleInterval<T> input)
input
- the source.public <T> IntervalView<T> offsetView(RandomAccessible<T> input, Interval interval)
input
- the sourceinterval
- the interval on source that should be cut out and
translated to the origin.public <T> IntervalView<T> offsetView(RandomAccessible<T> input, long[] offset, long... dimension)
input
- the sourceoffset
- offset of min corner.dimension
- size of the interval.public <T> MixedTransformView<T> rotateView(RandomAccessible<T> input, int fromAxis, int toAxis)
input
- fromAxis
- toAxis
- public <T> IntervalView<T> rotateView(RandomAccessibleInterval<T> input, int fromAxis, int toAxis)
input
- fromAxis
- toAxis
- public <T> SubsampleView<T> subsampleView(RandomAccessible<T> input, long... steps)
RandomAccessible
. This is effectively an integer scaling
transformation.input
- the sourcesteps
- the subsampling step sizesRandomAccessible
public <T> SubsampleIntervalView<T> subsampleView(RandomAccessibleInterval<T> input, long... steps)
RandomAccessible
while preserving interval bounds. This is
effectively an integer scaling transformation.input
- steps
- public <T> IntervalView<T> intervalView(RandomAccessible<T> input, long[] min, long... max)
input
- the sourcemin
- lower bound of intervalmax
- upper bound of intervalpublic String getName()
public <T extends Type<T>> RandomAccessibleInterval<T> concatenateView(List<? extends RandomAccessibleInterval<T>> source, int concatenationAxis)
List
of RandomAccessibleInterval
along the
specified axis.source
- a list of n-dimensional
RandomAccessibleInterval
with same size in every dimension
except for the concatenation dimension.concatenationAxis
- Concatenate along this dimension.RandomAccessibleInterval
. The size
of the concatenation dimension is the sum of sizes of all sources
in that dimension.public <T extends Type<T>> RandomAccessibleInterval<T> concatenateView(List<? extends RandomAccessibleInterval<T>> source, int concatenationAxis, StackView.StackAccessMode mode)
List
of RandomAccessibleInterval
along the
specified axis.source
- a list of n-dimensional
RandomAccessibleInterval
with same size in every dimension
except for the concatenation dimension.concatenationAxis
- Concatenate along this dimension.RandomAccessibleInterval
. The size
of the concatenation dimension is the sum of sizes of all sources
in that dimension.Copyright © 2014–2022 ImageJ. All rights reserved.