public final class Downsampler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Downsampler.Entry |
static class |
Downsampler.Pair<A,B> |
Constructor and Description |
---|
Downsampler() |
Modifier and Type | Method and Description |
---|---|
static Downsampler.Pair<ij.process.ByteProcessor,ij.process.ByteProcessor> |
downsampleAlphaAndOutside(ij.process.ByteProcessor aAlpha,
ij.process.ByteProcessor aOutside)
Combine an alpha and outside mask into a downsampled alpha and outside
mask.
|
static ij.process.ByteProcessor |
downsampleByteProcessor(ij.process.ByteProcessor a) |
static ij.process.ByteProcessor |
downsampleByteProcessor(ij.process.ByteProcessor a,
int level) |
static Downsampler.Pair<ij.process.ColorProcessor,byte[][]> |
downsampleColor(ij.process.ColorProcessor a)
Create a downsampled version of a
ColorProcessor and the
mapping of its red, green and blue channels into three unsigned byte
arrays. |
static ij.process.ColorProcessor |
downsampleColorProcessor(ij.process.ColorProcessor a) |
static ij.process.ColorProcessor |
downsampleColorProcessor(ij.process.ColorProcessor a,
int level) |
static Downsampler.Pair<ij.process.FloatProcessor,byte[]> |
downsampleFloat(ij.process.FloatProcessor a)
Create a downsampled version of a
FloatProcessor and the
mapping of its [min,max] range into an unsigned byte array. |
static ij.process.FloatProcessor |
downsampleFloatProcessor(ij.process.FloatProcessor a) |
static ij.process.FloatProcessor |
downsampleFloatProcessor(ij.process.FloatProcessor a,
int level) |
static ij.process.ImageProcessor |
downsampleImageProcessor(ij.process.ImageProcessor a)
Convenience call for abstract
ImageProcessor . |
static ij.process.ImageProcessor |
downsampleImageProcessor(ij.process.ImageProcessor a,
int level)
Convenience call for abstract
ImageProcessor . |
static ij.process.ByteProcessor |
downsampleOutside(ij.process.ByteProcessor aOutside)
Downsample and outside mask.
|
static Downsampler.Pair<ij.process.ShortProcessor,byte[]> |
downsampleShort(ij.process.ShortProcessor a)
Create a downsampled version of a
ShortProcessor and the
mapping of its [min,max] range into an unsigned byte array. |
static ij.process.ShortProcessor |
downsampleShortProcessor(ij.process.ShortProcessor a) |
public static final ij.process.ByteProcessor downsampleByteProcessor(ij.process.ByteProcessor a)
public static final ij.process.ByteProcessor downsampleByteProcessor(ij.process.ByteProcessor a, int level)
public static final ij.process.ShortProcessor downsampleShortProcessor(ij.process.ShortProcessor a)
public static final ij.process.FloatProcessor downsampleFloatProcessor(ij.process.FloatProcessor a, int level)
public static final ij.process.FloatProcessor downsampleFloatProcessor(ij.process.FloatProcessor a)
public static final ij.process.ColorProcessor downsampleColorProcessor(ij.process.ColorProcessor a)
public static final ij.process.ColorProcessor downsampleColorProcessor(ij.process.ColorProcessor a, int level)
public static final ij.process.ImageProcessor downsampleImageProcessor(ij.process.ImageProcessor a)
ImageProcessor
. Do not use if you
know the type of the processor to save the time for type checking.a
- public static final ij.process.ImageProcessor downsampleImageProcessor(ij.process.ImageProcessor a, int level)
ImageProcessor
. Do not use if you
know the type of the processor to save the time for type checking.a
- level
- pyramid level in a power of 2 scale pyramidpublic static final Downsampler.Pair<ij.process.ShortProcessor,byte[]> downsampleShort(ij.process.ShortProcessor a)
ShortProcessor
and the
mapping of its [min,max] range into an unsigned byte array.a
- ShortProcessor
Pair.b mapped into unsigned bytepublic static final Downsampler.Pair<ij.process.FloatProcessor,byte[]> downsampleFloat(ij.process.FloatProcessor a)
FloatProcessor
and the
mapping of its [min,max] range into an unsigned byte array.a
- FloatProcessor
Pair.b mapped into unsigned bytepublic static final Downsampler.Pair<ij.process.ColorProcessor,byte[][]> downsampleColor(ij.process.ColorProcessor a)
ColorProcessor
and the
mapping of its red, green and blue channels into three unsigned byte
arrays.a
- ColorProcessor
Pair.b red, green, blue channels as byte[] eachpublic static final Downsampler.Pair<ij.process.ByteProcessor,ij.process.ByteProcessor> downsampleAlphaAndOutside(ij.process.ByteProcessor aAlpha, ij.process.ByteProcessor aOutside)
aAlpha
- aOutside
- public static final ij.process.ByteProcessor downsampleOutside(ij.process.ByteProcessor aOutside)
aOutside
- Copyright © 2015–2021 Fiji. All rights reserved.