Package net.imglib2.converter.read
Class BiConvertedRealRandomAccessible<A,B,C>
- java.lang.Object
-
- net.imglib2.converter.AbstractConvertedRealRandomAccessible<A,C>
-
- net.imglib2.converter.read.BiConvertedRealRandomAccessible<A,B,C>
-
- All Implemented Interfaces:
EuclideanSpace,RealRandomAccessible<C>,Typed<C>,View
public class BiConvertedRealRandomAccessible<A,B,C> extends AbstractConvertedRealRandomAccessible<A,C>
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 RealRandomAccessible<B>sourceB-
Fields inherited from class net.imglib2.converter.AbstractConvertedRealRandomAccessible
source
-
-
Constructor Summary
Constructors Constructor Description BiConvertedRealRandomAccessible(RealRandomAccessible<A> sourceA, RealRandomAccessible<B> sourceB, java.util.function.Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, java.util.function.Supplier<? extends C> convertedSupplier)BiConvertedRealRandomAccessible(RealRandomAccessible<A> sourceA, RealRandomAccessible<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.converter.AbstractConvertedRealRandomAccessible
getSource, numDimensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.RealRandomAccessible
getAt, getAt, getAt
-
-
-
-
Field Detail
-
sourceB
protected final RealRandomAccessible<B> sourceB
-
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
-
BiConvertedRealRandomAccessible
public BiConvertedRealRandomAccessible(RealRandomAccessible<A> sourceA, RealRandomAccessible<B> sourceB, java.util.function.Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, java.util.function.Supplier<? extends C> convertedSupplier)
-
BiConvertedRealRandomAccessible
public BiConvertedRealRandomAccessible(RealRandomAccessible<A> sourceA, RealRandomAccessible<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>- Specified by:
realRandomAccessin classAbstractConvertedRealRandomAccessible<A,C>- Returns:
- random access sampler
-
realRandomAccess
public BiConvertedRealRandomAccess<A,B,C> realRandomAccess(RealInterval interval)
- Specified by:
realRandomAccessin interfaceRealRandomAccessible<A>- Specified by:
realRandomAccessin classAbstractConvertedRealRandomAccessible<A,C>
-
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.- Returns:
- an instance of
T
-
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
-
-