V - the type of the tensor values to resamplepublic class MultiDimensionalResampling<V>
extends java.lang.Object
MultiDimensionalResampling<V> resampling = MultiDimensionalResampling.resample(Coord1.class, coord1Resampler)
.then(Coord2.class, coord2Resampler)
[...];
Note: The order is very relevant here!
The actual resampled object can finally be created by calling te resample(Tensor) method.
| Modifier and Type | Method and Description |
|---|---|
static <C,V> MultiDimensionalResampling<V> |
resample(java.lang.Class<C> dimension,
SingleDimensionResampler<C,V> resampler)
Starting point for chaining several dimensino-resampler pairs.
|
Tensoric<V> |
resample(Tensor<V> original)
Produces a resampled tensoric object out of the given tensor, by applying the resamplers configured in
this object. |
<C> MultiDimensionalResampling<V> |
then(java.lang.Class<C> dimension,
SingleDimensionResampler<C,V> dimensionComparator)
Creates a new instance of a multidimensional resamplings, containing the resamplers from
this
multidimensional resampling plus the given one. |
public static final <C,V> MultiDimensionalResampling<V> resample(java.lang.Class<C> dimension, SingleDimensionResampler<C,V> resampler)
dimension - the dimension for which the given resampler shall be applied.resampler - the resampler to apply for the given dimensionjava.lang.NullPointerException - if one of the given arguments is nullpublic final <C> MultiDimensionalResampling<V> then(java.lang.Class<C> dimension, SingleDimensionResampler<C,V> dimensionComparator)
this
multidimensional resampling plus the given one.dimension - the dimension for which the given resampler shall be useddimensionComparator - the resampler which shall be used for the given dimensionthis object plus the
given one.public Tensoric<V> resample(Tensor<V> original)
this object.original - the tensor on which the resampling shall be applied