Package net.imglib2.converter.read
Class BiConvertedRealRandomAccessibleRealInterval<A,B,C>
- java.lang.Object
-
- net.imglib2.AbstractWrappedRealInterval<RealRandomAccessibleRealInterval<A>>
-
- net.imglib2.converter.read.BiConvertedRealRandomAccessibleRealInterval<A,B,C>
-
- All Implemented Interfaces:
EuclideanSpace,RealInterval,RealRandomAccessible<C>,RealRandomAccessibleRealInterval<C>,Typed<C>,View
public class BiConvertedRealRandomAccessibleRealInterval<A,B,C> extends AbstractWrappedRealInterval<RealRandomAccessibleRealInterval<A>> implements RealRandomAccessibleRealInterval<C>, View
TODO
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.function.Supplier<? extends C>convertedSupplierprotected java.util.function.Supplier<BiConverter<? super A,? super B,? super C>>converterSupplierprotected RealRandomAccessibleRealInterval<B>sourceIntervalB-
Fields inherited from class net.imglib2.AbstractWrappedRealInterval
sourceInterval
-
-
Constructor Summary
Constructors Constructor Description BiConvertedRealRandomAccessibleRealInterval(RealRandomAccessibleRealInterval<A> sourceA, RealRandomAccessibleRealInterval<B> sourceB, java.util.function.Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, java.util.function.Supplier<? extends C> convertedSupplier)BiConvertedRealRandomAccessibleRealInterval(RealRandomAccessibleRealInterval<A> sourceA, RealRandomAccessibleRealInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, java.util.function.Supplier<? extends C> convertedSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BiConverter<? super A,? super B,? super C>getConverter()Deprecated.UsegetConverterSupplier()insteadjava.util.function.Supplier<BiConverter<? super A,? super B,? super C>>getConverterSupplier()java.util.function.Supplier<? extends C>getDestinationSupplier()CgetDestinationType()Deprecated.UsegetDestinationSupplier()instead.CgetType()Get an instance ofT.BiConvertedRealRandomAccess<A,B,C>realRandomAccess()Create a random access sampler for real coordinates.BiConvertedRealRandomAccess<A,B,C>realRandomAccess(RealInterval interval)-
Methods inherited from class net.imglib2.AbstractWrappedRealInterval
getSource, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
-
Methods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMax, realMin, realMin, realMin
-
Methods inherited from interface net.imglib2.RealRandomAccessible
getAt, getAt, getAt
-
-
-
-
Field Detail
-
sourceIntervalB
protected final RealRandomAccessibleRealInterval<B> sourceIntervalB
-
converterSupplier
protected final java.util.function.Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier
-
convertedSupplier
protected final java.util.function.Supplier<? extends C> convertedSupplier
-
-
Constructor Detail
-
BiConvertedRealRandomAccessibleRealInterval
public BiConvertedRealRandomAccessibleRealInterval(RealRandomAccessibleRealInterval<A> sourceA, RealRandomAccessibleRealInterval<B> sourceB, java.util.function.Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, java.util.function.Supplier<? extends C> convertedSupplier)
-
BiConvertedRealRandomAccessibleRealInterval
public BiConvertedRealRandomAccessibleRealInterval(RealRandomAccessibleRealInterval<A> sourceA, RealRandomAccessibleRealInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, java.util.function.Supplier<? extends C> convertedSupplier)
-
-
Method Detail
-
realRandomAccess
public BiConvertedRealRandomAccess<A,B,C> realRandomAccess()
Description copied from interface:RealRandomAccessibleCreate a random access sampler for real coordinates.- Specified by:
realRandomAccessin interfaceRealRandomAccessible<A>- Returns:
- random access sampler
-
realRandomAccess
public BiConvertedRealRandomAccess<A,B,C> realRandomAccess(RealInterval interval)
- Specified by:
realRandomAccessin interfaceRealRandomAccessible<A>
-
getDestinationType
@Deprecated public C getDestinationType()
Deprecated.UsegetDestinationSupplier()instead.- Returns:
- an instance of the destination
Type.
-
getDestinationSupplier
public java.util.function.Supplier<? extends C> getDestinationSupplier()
- Returns:
- the supplier of conversion destination instances
-
getType
public C getType()
Description copied from interface:TypedGet an instance ofT.It should not be assumed that the returned
Tinstance is an independent copy. In particular, repeated calls togetType()may return the same instance.
-
getConverter
@Deprecated public BiConverter<? super A,? super B,? super C> getConverter()
Deprecated.UsegetConverterSupplier()insteadReturns an instance of theBiConverter. If theBiConvertedRealRandomAccessibleRealIntervalwas created with aBiConverterinstead of aSupplier, then the returned converter will be this instance.- Returns:
-
getConverterSupplier
public java.util.function.Supplier<BiConverter<? super A,? super B,? super C>> getConverterSupplier()
- Returns:
- the supplier of converter instances
-
-