public class Converters extends Object
| Constructor and Description |
|---|
Converters() |
| Modifier and Type | Method and Description |
|---|---|
static WriteConvertedRandomAccessible<ARGBType,UnsignedByteType> |
argbChannel(RandomAccessible<ARGBType> source,
int channel)
Create a
WriteConvertedRandomAccessible to one of the four
channels encoded in a RandomAccessible of ARGBType. |
static WriteConvertedRandomAccessibleInterval<ARGBType,UnsignedByteType> |
argbChannel(RandomAccessibleInterval<ARGBType> source,
int channel)
Create a
WriteConvertedRandomAccessibleInterval to one of the
four channels encoded in a RandomAccessibleInterval of
ARGBType. |
static RandomAccessibleInterval<UnsignedByteType> |
argbChannels(RandomAccessibleInterval<ARGBType> source)
Create an (n+1)-dimensional
RandomAccessible of an
n-dimensional RandomAccessible that maps the four
channels encoded in ARGBType into a dimension. |
static RandomAccessibleInterval<UnsignedByteType> |
argbChannels(RandomAccessibleInterval<ARGBType> source,
int... channels)
Create an (n+1)-dimensional
RandomAccessible of an
n-dimensional RandomAccessible that maps the four
channels encoded in ARGBType into a dimension. |
static <A,B extends Type<B>> |
compose(List<RandomAccessibleInterval<A>> components,
Converter<Composite<A>,B> composer,
B targetType)
Compose a list of same
Interval and same Type A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B. |
static <A,B extends Type<B>> |
compose(List<RandomAccessibleInterval<A>> components,
Converter<Composite<A>,B> composer,
Supplier<B> targetTypeSupplier)
Compose a list of same
Interval and same Type A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B. |
static <A extends NumericType<A>,B extends Type<B>> |
composeNumeric(List<RandomAccessibleInterval<A>> components,
Converter<NumericComposite<A>,B> composer,
B targetType)
Compose a list of same
Interval and same NumericType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B. |
static <A extends NumericType<A>,B extends Type<B>> |
composeNumeric(List<RandomAccessibleInterval<A>> components,
Converter<NumericComposite<A>,B> composer,
Supplier<B> targetTypeSupplier)
Compose a list of same
Interval and same NumericType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B. |
static <A extends RealType<A>,B extends Type<B>> |
composeReal(List<RandomAccessibleInterval<A>> components,
Converter<RealComposite<A>,B> composer,
B targetType)
Compose a list of same
Interval and same RealType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B. |
static <A extends RealType<A>,B extends Type<B>> |
composeReal(List<RandomAccessibleInterval<A>> components,
Converter<RealComposite<A>,B> composer,
Supplier<B> targetTypeSupplier)
Compose a list of same
Interval and same RealType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B. |
static <A,B extends Type<B>> |
convert(IterableInterval<A> source,
Converter<? super A,? super B> converter,
B b)
|
static <A,B,C extends Type<C>> |
convert(IterableInterval<A> sourceA,
IterableInterval<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
|
static <A,B,C extends Type<C>> |
convert(IterableInterval<A> sourceA,
IterableInterval<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
|
static <A,B extends Type<B>> |
convert(IterableInterval<A> source,
SamplerConverter<? super A,B> converter)
|
static <A,B extends Type<B>> |
convert(IterableInterval<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
|
static <A,B extends Type<B>> |
convert(IterableInterval<A> source,
Supplier<SamplerConverter<? super A,B>> converterSupplier)
|
static <A,B extends Type<B>> |
convert(IterableRealInterval<A> source,
Converter<? super A,? super B> converter,
B b)
|
static <A,B,C extends Type<C>> |
convert(IterableRealInterval<A> sourceA,
IterableRealInterval<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
|
static <A,B,C extends Type<C>> |
convert(IterableRealInterval<A> sourceA,
IterableRealInterval<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
|
static <A,B extends Type<B>> |
convert(IterableRealInterval<A> source,
SamplerConverter<? super A,B> converter)
|
static <A,B extends Type<B>> |
convert(IterableRealInterval<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
|
static <A,B extends Type<B>> |
convert(RandomAccessible<A> source,
Converter<? super A,? super B> converter,
B b)
|
static <A,B,C extends Type<C>> |
convert(RandomAccessible<A> sourceA,
RandomAccessible<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
|
static <A,B,C extends Type<C>> |
convert(RandomAccessible<A> sourceA,
RandomAccessible<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
|
static <A,B extends Type<B>> |
convert(RandomAccessible<A> source,
SamplerConverter<? super A,B> converter)
|
static <A,B extends Type<B>> |
convert(RandomAccessible<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
|
static <A,B extends Type<B>> |
convert(RandomAccessible<A> source,
Supplier<SamplerConverter<? super A,B>> converterSupplier)
|
static <A,B extends Type<B>> |
convert(RandomAccessibleInterval<A> source,
Converter<? super A,? super B> converter,
B b)
|
static <A,B,C extends Type<C>> |
convert(RandomAccessibleInterval<A> sourceA,
RandomAccessibleInterval<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
|
static <A,B,C extends Type<C>> |
convert(RandomAccessibleInterval<A> sourceA,
RandomAccessibleInterval<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
|
static <A,B extends Type<B>> |
convert(RandomAccessibleInterval<A> source,
SamplerConverter<? super A,B> converter)
|
static <A,B extends Type<B>> |
convert(RandomAccessibleInterval<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
|
static <A,B extends Type<B>> |
convert(RandomAccessibleInterval<A> source,
Supplier<SamplerConverter<? super A,B>> converterSupplier)
|
static <A,B extends Type<B>> |
convert(RealRandomAccessible<A> source,
Converter<? super A,? super B> converter,
B b)
|
static <A,B,C extends Type<C>> |
convert(RealRandomAccessible<A> sourceA,
RealRandomAccessible<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
|
static <A,B,C extends Type<C>> |
convert(RealRandomAccessible<A> sourceA,
RealRandomAccessible<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
|
static <A,B extends Type<B>> |
convert(RealRandomAccessible<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
|
static <A,B extends Type<B>> |
convert(RealRandomAccessibleRealInterval<A> source,
Converter<? super A,? super B> converter,
B b)
Create a
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample. |
static <A,B,C extends Type<C>> |
convert(RealRandomAccessibleRealInterval<A> sourceA,
RealRandomAccessibleRealInterval<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
Create a
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample. |
static <A,B,C extends Type<C>> |
convert(RealRandomAccessibleRealInterval<A> sourceA,
RealRandomAccessibleRealInterval<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
Create a
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample. |
static <A,B extends Type<B>> |
convert(RealRandomAccessibleRealInterval<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
Create a
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample. |
static <A,B extends Type<B>> |
convertRAI(RandomAccessibleInterval<A> source,
Converter<? super A,? super B> converter,
B b)
|
static <A,B,C extends Type<C>> |
convertRAI(RandomAccessibleInterval<A> sourceA,
RandomAccessibleInterval<B> sourceB,
BiConverter<? super A,? super B,? super C> converter,
C c)
|
static <A,B,C extends Type<C>> |
convertRAI(RandomAccessibleInterval<A> sourceA,
RandomAccessibleInterval<B> sourceB,
Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier,
C c)
|
static <A,B extends Type<B>> |
convertRAI(RandomAccessibleInterval<A> source,
SamplerConverter<? super A,B> converter)
|
static <A,B extends Type<B>> |
convertRAI(RandomAccessibleInterval<A> source,
Supplier<Converter<? super A,? super B>> converterSupplier,
B b)
|
static <A,B extends Type<B>> |
convertRAI(RandomAccessibleInterval<A> source,
Supplier<SamplerConverter<? super A,B>> converterSupplier)
|
static <A,B extends Type<B>,S extends RandomAccessible<A> & IterableInterval<A>> |
convertRandomAccessibleIterableInterval(S source,
SamplerConverter<? super A,B> converter)
Create an
WriteConvertedIterableRandomAccessibleInterval whose
RandomAccesses and Cursors
Sampler.get() you a converted sample. |
static <A,B extends Type<B>,S extends RandomAccessible<A> & IterableInterval<A>> |
convertRandomAccessibleIterableInterval(S source,
Supplier<SamplerConverter<? super A,B>> converterSupplier)
Create an
WriteConvertedIterableRandomAccessibleInterval whose
RandomAccesses and Cursors
Sampler.get() you a converted sample. |
static RandomAccessible<ARGBType> |
mergeARGB(RandomAccessible<UnsignedByteType> source,
ColorChannelOrder channelOrder)
Create an n-dimensional color image from an
(n+1)-dimensional image of
UnsignedByteType. |
static RandomAccessibleInterval<ARGBType> |
mergeARGB(RandomAccessibleInterval<UnsignedByteType> source,
ColorChannelOrder channelOrder)
Create an n-dimensional color image from an
(n+1)-dimensional image of
UnsignedByteType. |
public static final <A,B extends Type<B>> RandomAccessible<B> convert(RandomAccessible<A> source, Converter<? super A,? super B> converter, B b)
RandomAccessible whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.source - converter - b - RandomAccessible whose RandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B extends Type<B>> RandomAccessible<B> convert(RandomAccessible<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
RandomAccessible whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.source - converterSupplier - b - RandomAccessible whose RandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B extends Type<B>> WriteConvertedRandomAccessible<A,B> convert(RandomAccessible<A> source, SamplerConverter<? super A,B> converter)
RandomAccessible whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly both when reading and writing values.source - converter - RandomAccessible whose RandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B extends Type<B>> WriteConvertedRandomAccessible<A,B> convert(RandomAccessible<A> source, Supplier<SamplerConverter<? super A,B>> converterSupplier)
RandomAccessible whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly both when reading and writing values.source - converterSupplier - RandomAccessible whose RandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B extends Type<B>> RandomAccessibleInterval<B> convert(RandomAccessibleInterval<A> source, Converter<? super A,? super B> converter, B b)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.source - converter - b - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> RandomAccessibleInterval<B> convert(RandomAccessibleInterval<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.source - converterSupplier - b - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> RandomAccessibleInterval<B> convertRAI(RandomAccessibleInterval<A> source, Converter<? super A,? super B> converter, B b)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.
Delegates to convert(RandomAccessibleInterval, Converter, Type).
The different method name avoids situations where the compiler
or a scripting language interpreter picks the undesired method
for an object that implements both RandomAccessibleInterval
and IterableInterval.source - converter - b - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> RandomAccessibleInterval<B> convertRAI(RandomAccessibleInterval<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.
Delegates to convert(RandomAccessibleInterval, Converter, Type).
The different method name avoids situations where the compiler
or a scripting language interpreter picks the undesired method
for an object that implements both RandomAccessibleInterval
and IterableInterval.source - converterSupplier - b - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> WriteConvertedRandomAccessibleInterval<A,B> convert(RandomAccessibleInterval<A> source, SamplerConverter<? super A,B> converter)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly both when reading and writing values.source - converter - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> WriteConvertedRandomAccessibleInterval<A,B> convert(RandomAccessibleInterval<A> source, Supplier<SamplerConverter<? super A,B>> converterSupplier)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly both when reading and writing values.source - converterSupplier - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> WriteConvertedRandomAccessibleInterval<A,B> convertRAI(RandomAccessibleInterval<A> source, SamplerConverter<? super A,B> converter)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly both when reading and writing values.
Delegates to convert(RandomAccessibleInterval, SamplerConverter).
The different name avoids situations where the compiler
or a scripting language interpreter picks the undesired method
for an object that implements both RandomAccessibleInterval
and IterableInterval.source - converter - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> IterableRealInterval<B> convert(IterableRealInterval<A> source, Converter<? super A,? super B> converter, B b)
IterableRealInterval whose RealCursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableRealInterval has no effect.source - converter - b - IterableRealInterval whose RealCursors
perform on-the-fly value conversion using the provided converter.public static final <A,B extends Type<B>> IterableRealInterval<B> convert(IterableRealInterval<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
IterableRealInterval whose RealCursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableRealInterval has no effect.source - converterSupplier - b - IterableRealInterval whose RealCursors
perform on-the-fly value conversion using the provided converter.public static final <A,B extends Type<B>> WriteConvertedRandomAccessibleInterval<A,B> convertRAI(RandomAccessibleInterval<A> source, Supplier<SamplerConverter<? super A,B>> converterSupplier)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly both when reading and writing values.
Delegates to convert(RandomAccessibleInterval, SamplerConverter).
The different name avoids situations where the compiler
or a scripting language interpreter picks the undesired method
for an object that implements both RandomAccessibleInterval
and IterableInterval.source - converterSupplier - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> IterableInterval<B> convert(IterableInterval<A> source, Converter<? super A,? super B> converter, B b)
IterableInterval whose Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableInterval has no effect.source - converter - b - IterableInterval whose Cursors
perform on-the-fly value conversion using the provided converter.public static final <A,B extends Type<B>> IterableInterval<B> convert(IterableInterval<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
IterableInterval whose Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableInterval has no effect.source - converterSupplier - b - IterableInterval whose Cursors
perform on-the-fly value conversion using the provided converter.public static final <A,B extends Type<B>> WriteConvertedIterableInterval<A,B> convert(IterableInterval<A> source, SamplerConverter<? super A,B> converter)
IterableInterval whose Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly both when reading and writing values.source - converter - IterableInterval whose Cursors
perform on-the-fly value conversion using the provided converter.public static final <A,B extends Type<B>> WriteConvertedIterableRealInterval<A,B> convert(IterableRealInterval<A> source, SamplerConverter<? super A,B> converter)
IterableRealInterval whose RealCursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly both when reading and writing values.source - converter - IterableRealInterval whose RealCursors
perform on-the-fly value conversion using the provided converter.public static final <A,B extends Type<B>> WriteConvertedIterableInterval<A,B> convert(IterableInterval<A> source, Supplier<SamplerConverter<? super A,B>> converterSupplier)
IterableInterval whose Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly both when reading and writing values.source - converterSupplier - IterableInterval whose Cursors
perform on-the-fly value conversion using the provided converter.public static final <A,B extends Type<B>,S extends RandomAccessible<A> & IterableInterval<A>> WriteConvertedIterableRandomAccessibleInterval<A,B,S> convertRandomAccessibleIterableInterval(S source, SamplerConverter<? super A,B> converter)
WriteConvertedIterableRandomAccessibleInterval whose
RandomAccesses and Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly both when reading and writing values.source - converter - WriteConvertedIterableRandomAccessibleInterval whose
Samplers perform on-the-fly value conversion
using the provided converter.public static final <A,B extends Type<B>,S extends RandomAccessible<A> & IterableInterval<A>> WriteConvertedIterableRandomAccessibleInterval<A,B,S> convertRandomAccessibleIterableInterval(S source, Supplier<SamplerConverter<? super A,B>> converterSupplier)
WriteConvertedIterableRandomAccessibleInterval whose
RandomAccesses and Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly both when reading and writing values.source - converterSupplier - WriteConvertedIterableRandomAccessibleInterval whose
Samplers perform on-the-fly value conversion
using the provided converter.public static final <A,B extends Type<B>> RealRandomAccessibleRealInterval<B> convert(RealRandomAccessibleRealInterval<A> source, Converter<? super A,? super B> converter, B b)
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RealRandomAccessibleRealInterval has no effect.source - converter - b - RealRandomAccessibleRealInterval whose
RealRandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> RealRandomAccessibleRealInterval<B> convert(RealRandomAccessibleRealInterval<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RealRandomAccessibleRealInterval has no effect.source - converterSupplier - b - RealRandomAccessibleRealInterval whose
RealRandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B extends Type<B>> RealRandomAccessible<B> convert(RealRandomAccessible<A> source, Converter<? super A,? super B> converter, B b)
RealRandomAccessible whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.source - converter - b - RealRandomAccessible whose RealRandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B extends Type<B>> RealRandomAccessible<B> convert(RealRandomAccessible<A> source, Supplier<Converter<? super A,? super B>> converterSupplier, B b)
RealRandomAccessible whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.source - converterSupplier - b - RealRandomAccessible whose RealRandomAccesses perform on-the-fly value conversion using the
provided converter.public static final WriteConvertedRandomAccessibleInterval<ARGBType,UnsignedByteType> argbChannel(RandomAccessibleInterval<ARGBType> source, int channel)
WriteConvertedRandomAccessibleInterval to one of the
four channels encoded in a RandomAccessibleInterval of
ARGBType. The source is being modified as expected by writing
into the converted channels.source - channel - 0 = alpha, 1 = red, 2 = green, 3 = blueWriteConvertedRandomAccessibleInterval whose
Samplers perform on-the-fly value conversion
into and from one channel of the original ARGBType.public static final WriteConvertedRandomAccessible<ARGBType,UnsignedByteType> argbChannel(RandomAccessible<ARGBType> source, int channel)
WriteConvertedRandomAccessible to one of the four
channels encoded in a RandomAccessible of ARGBType.
The source is being modified as expected by writing into the converted
channels.source - channel - 0 = alpha, 1 = red, 2 = green, 3 = blueWriteConvertedRandomAccessible whose
Samplers perform on-the-fly value conversion
into and from one channel of the original ARGBType.public static final RandomAccessibleInterval<UnsignedByteType> argbChannels(RandomAccessibleInterval<ARGBType> source)
RandomAccessible of an
n-dimensional RandomAccessible that maps the four
channels encoded in ARGBType into a dimension. The source is
being modified as expected by writing into the converted channels.source - RandomAccessibleInterval whose
Samplers perform on-the-fly value conversion
into and from the corresponding channels of the original
ARGBType.public static final RandomAccessibleInterval<UnsignedByteType> argbChannels(RandomAccessibleInterval<ARGBType> source, int... channels)
RandomAccessible of an
n-dimensional RandomAccessible that maps the four
channels encoded in ARGBType into a dimension. The order
of the channels passed as arguments is preserved. The source is being
modified as expected by writing into the converted channels.source - channels - 0 = alpha, 1 = red, 2 = green, 3 = blueRandomAccessibleInterval whose
Samplers perform on-the-fly value conversion
into and from the corresponding channels of the original
ARGBType.public static final RandomAccessible<ARGBType> mergeARGB(RandomAccessible<UnsignedByteType> source, ColorChannelOrder channelOrder)
UnsignedByteType.source - The last dimension of the image must be the color channel.
Views.stack(java.util.List<? extends net.imglib2.RandomAccessibleInterval<T>>) could be used to create the source, if
there is a separate image for each color channel.channelOrder - Order of the color channels.public static final RandomAccessibleInterval<ARGBType> mergeARGB(RandomAccessibleInterval<UnsignedByteType> source, ColorChannelOrder channelOrder)
UnsignedByteType.source - The last dimension of the image must be the color channel.
Views.stack(java.util.List<? extends net.imglib2.RandomAccessibleInterval<T>>) could be used to create the source, if
there is a separate image for each color channel.channelOrder - Order of the color channels.public static final <A extends RealType<A>,B extends Type<B>> RandomAccessibleInterval<B> composeReal(List<RandomAccessibleInterval<A>> components, Converter<RealComposite<A>,B> composer, B targetType)
Interval and same RealType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B.components - composer - targetType - public static final <A extends RealType<A>,B extends Type<B>> RandomAccessibleInterval<B> composeReal(List<RandomAccessibleInterval<A>> components, Converter<RealComposite<A>,B> composer, Supplier<B> targetTypeSupplier)
Interval and same RealType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B.components - composer - targetTypeSupplier - public static final <A extends NumericType<A>,B extends Type<B>> RandomAccessibleInterval<B> composeNumeric(List<RandomAccessibleInterval<A>> components, Converter<NumericComposite<A>,B> composer, B targetType)
Interval and same NumericType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B.components - composer - targetType - public static final <A extends NumericType<A>,B extends Type<B>> RandomAccessibleInterval<B> composeNumeric(List<RandomAccessibleInterval<A>> components, Converter<NumericComposite<A>,B> composer, Supplier<B> targetTypeSupplier)
Interval and same NumericType A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B.components - composer - targetTypeSupplier - public static final <A,B extends Type<B>> RandomAccessibleInterval<B> compose(List<RandomAccessibleInterval<A>> components, Converter<Composite<A>,B> composer, B targetType)
Interval and same Type A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B.components - composer - targetType - public static final <A,B extends Type<B>> RandomAccessibleInterval<B> compose(List<RandomAccessibleInterval<A>> components, Converter<Composite<A>,B> composer, Supplier<B> targetTypeSupplier)
Interval and same Type A
RandomAccessibleIntervals into a
RandomAccessibleInterval of some target Type B using a
Converter from Composite of A to B.components - composer - targetTypeSupplier - public static final <A,B,C extends Type<C>> RandomAccessible<C> convert(RandomAccessible<A> sourceA, RandomAccessible<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
RandomAccessible whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.sourceA - sourceB - converter - a two variable function into a preallocated output, e.g.
(a, b, c) -> c.set(a.get() + b.get())c - RandomAccessible whose RandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B,C extends Type<C>> RandomAccessible<C> convert(RandomAccessible<A> sourceA, RandomAccessible<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
RandomAccessible whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.sourceA - sourceB - converterSupplier - a supplier of a two variable function into a
preallocated output, e.g.
() -> (a, b, c) -> c.set(a.get() + b.get())c - RandomAccessible whose RandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B,C extends Type<C>> RandomAccessibleInterval<C> convert(RandomAccessibleInterval<A> sourceA, RandomAccessibleInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.sourceA - sourceB - converter - a two variable function into a preallocated output, e.g.
(a, b, c) -> c.set(a.get() + b.get())c - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided BiConverter.public static final <A,B,C extends Type<C>> RandomAccessibleInterval<C> convert(RandomAccessibleInterval<A> sourceA, RandomAccessibleInterval<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.sourceA - sourceB - converterSupplier - a supplier of a two variable function into a
preallocated output, e.g.
() -> (a, b, c) -> c.set(a.get() + b.get())c - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided BiConverter.public static final <A,B,C extends Type<C>> RandomAccessibleInterval<C> convertRAI(RandomAccessibleInterval<A> sourceA, RandomAccessibleInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.
Delegates to convert(RandomAccessibleInterval, Converter, Type).
The different method name avoids situations where the compiler
or a scripting language interpreter picks the undesired method
for an object that implements both RandomAccessibleInterval
and IterableInterval.sourceA - sourceB - converter - a two variable function into a preallocated output, e.g.
(a, b, c) -> c.set(a.get() + b.get())c - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B,C extends Type<C>> RandomAccessibleInterval<C> convertRAI(RandomAccessibleInterval<A> sourceA, RandomAccessibleInterval<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
RandomAccessibleInterval whose RandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.
Delegates to convert(RandomAccessibleInterval, Converter, Type).
The different method name avoids situations where the compiler
or a scripting language interpreter picks the undesired method
for an object that implements both RandomAccessibleInterval
and IterableInterval.sourceA - sourceB - converterSupplier - s aupplier of a two variable function into a
preallocated output, e.g.
() -> (a, b, c) -> c.set(a.get() + b.get())c - RandomAccessibleInterval whose
RandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B,C extends Type<C>> IterableInterval<C> convert(IterableInterval<A> sourceA, IterableInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
IterableInterval whose Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableInterval has no effect.sourceA - sourceB - converter - a two variable function into a preallocated output, e.g.
(a, b, c) -> c.set(a.get() + b.get())c - IterableInterval whose Cursors
perform on-the-fly value conversion using the provided converter.public static final <A,B,C extends Type<C>> IterableInterval<C> convert(IterableInterval<A> sourceA, IterableInterval<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
IterableInterval whose Cursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableInterval has no effect.sourceA - sourceB - converterSupplier - supplies a two variable function into a
preallocated output, e.g.
() -> (a, b, c) -> c.set(a.get() + b.get())c - IterableInterval whose Cursors
perform on-the-fly value conversion using the provided converter.public static final <A,B,C extends Type<C>> IterableRealInterval<C> convert(IterableRealInterval<A> sourceA, IterableRealInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
IterableRealInterval whose RealCursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableRealInterval has no effect.sourceA - sourceB - converter - a two variable function into a preallocated output, e.g.
(a, b, c) -> c.set(a.get() + b.get())c - IterableRealInterval whose RealCursors
perform on-the-fly value conversion using the provided converter.public static final <A,B,C extends Type<C>> IterableRealInterval<C> convert(IterableRealInterval<A> sourceA, IterableRealInterval<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
IterableRealInterval whose RealCursors
Sampler.get() you a converted sample. Conversion is done
on-the-fly when reading values. Writing to the converted
IterableInterval has no effect.sourceA - sourceB - converterSupplier - supplies a two variable function into a
preallocated output, e.g.
() -> (a, b, c) -> c.set(a.get() + b.get())c - IterableRealInterval whose RealCursors
perform on-the-fly value conversion using the provided converter.public static final <A,B,C extends Type<C>> RealRandomAccessibleRealInterval<C> convert(RealRandomAccessibleRealInterval<A> sourceA, RealRandomAccessibleRealInterval<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RealRandomAccessibleRealInterval has no effect.sourceA - sourceB - converter - a two variable function into a preallocated output, e.g.
(a, b, c) -> c.set(a.get() + b.get())c - RealRandomAccessibleRealInterval whose
RealRandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B,C extends Type<C>> RealRandomAccessibleRealInterval<C> convert(RealRandomAccessibleRealInterval<A> sourceA, RealRandomAccessibleRealInterval<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
RealRandomAccessibleRealInterval whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RealRandomAccessibleRealInterval has no effect.sourceA - sourceB - converterSupplier - a supplier of a two variable function into a
preallocated output, e.g.
() -> (a, b, c) -> c.set(a.get() + b.get())c - RealRandomAccessibleRealInterval whose
RealRandomAccesses perform on-the-fly value
conversion using the provided converter.public static final <A,B,C extends Type<C>> RealRandomAccessible<C> convert(RealRandomAccessible<A> sourceA, RealRandomAccessible<B> sourceB, BiConverter<? super A,? super B,? super C> converter, C c)
RealRandomAccessible whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.sourceA - sourceB - converter - a two variable function into a preallocated output, e.g.
(a, b, c) -> c.set(a.get() + b.get())c - RealRandomAccessible whose RealRandomAccesses perform on-the-fly value conversion using the
provided converter.public static final <A,B,C extends Type<C>> RealRandomAccessible<C> convert(RealRandomAccessible<A> sourceA, RealRandomAccessible<B> sourceB, Supplier<BiConverter<? super A,? super B,? super C>> converterSupplier, C c)
RealRandomAccessible whose RealRandomAccesses Sampler.get() you a converted sample.
Conversion is done on-the-fly when reading values. Writing to the
converted RandomAccessibleInterval has no effect.sourceA - sourceB - converterSupplier - a supplier of a two variable function into a
preallocated output, e.g.
() -> (a, b, c) -> c.set(a.get() + b.get())c - RealRandomAccessible whose RealRandomAccesses perform on-the-fly value conversion using the
provided converter.Copyright © 2015–2022 ImgLib2. All rights reserved.