public class ImagePlusImgLoader<T extends Type<T>> extends Object implements TypedBasicImgLoader<T>
BasicImgLoader
implementation returns a wrapped, converted
ImagePlus
. It is used for exporting ImagePlus
to hdf5.
Internally it relies on VirtualStackImageLoader
to be able to handle
large virtual stacks.
When loading images (getSetupImgLoader(int)
,
BasicSetupImgLoader.getImage(int, ImgLoaderHint...)
) the provided
setup id is used as the channel index of the ImagePlus
, the provided
timepoint id is used as the frame index of the ImagePlus
.Modifier and Type | Class and Description |
---|---|
static interface |
ImagePlusImgLoader.ConverterFactory<T> |
static class |
ImagePlusImgLoader.MinMaxOption |
class |
ImagePlusImgLoader.SetupImgLoader<S extends RealType<S> & NativeType<S>> |
Modifier and Type | Field and Description |
---|---|
protected ImagePlusImgLoader.ConverterFactory<T> |
converterFactory |
protected ij.ImagePlus |
imp |
protected double |
impMax |
protected double |
impMin |
protected BasicImgLoader |
loader |
protected VolatileGlobalCellCache |
loadercache |
protected ArrayList<ImagePlusImgLoader.SetupImgLoader<?>> |
setupImgLoaders |
protected T |
type |
Modifier | Constructor and Description |
---|---|
protected |
ImagePlusImgLoader(ij.ImagePlus imp,
TypedBasicImgLoader<S> loader,
ImagePlusImgLoader.MinMaxOption minMaxOption,
double min,
double max,
T type,
ImagePlusImgLoader.ConverterFactory<T> converterFactory) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
static ImagePlusImgLoader<FloatType> |
createFloatFromGray8(ij.ImagePlus imp,
ImagePlusImgLoader.MinMaxOption minMaxOption,
double min,
double max) |
static ImagePlusImgLoader<UnsignedShortType> |
createGray16(ij.ImagePlus imp,
ImagePlusImgLoader.MinMaxOption minMaxOption,
double min,
double max) |
static ImagePlusImgLoader<UnsignedShortType> |
createGray32(ij.ImagePlus imp,
ImagePlusImgLoader.MinMaxOption minMaxOption,
double min,
double max) |
static ImagePlusImgLoader<UnsignedShortType> |
createGray8(ij.ImagePlus imp,
ImagePlusImgLoader.MinMaxOption minMaxOption,
double min,
double max) |
ImagePlusImgLoader.SetupImgLoader<?> |
getSetupImgLoader(int setupId)
Get the
BasicSetupImgLoader for the specified view setup. |
protected final ij.ImagePlus imp
protected final BasicImgLoader loader
protected VolatileGlobalCellCache loadercache
protected final ArrayList<ImagePlusImgLoader.SetupImgLoader<?>> setupImgLoaders
protected double impMin
protected double impMax
protected final ImagePlusImgLoader.ConverterFactory<T extends Type<T>> converterFactory
protected ImagePlusImgLoader(ij.ImagePlus imp, TypedBasicImgLoader<S> loader, ImagePlusImgLoader.MinMaxOption minMaxOption, double min, double max, T type, ImagePlusImgLoader.ConverterFactory<T> converterFactory)
public static ImagePlusImgLoader<UnsignedShortType> createGray8(ij.ImagePlus imp, ImagePlusImgLoader.MinMaxOption minMaxOption, double min, double max)
public static ImagePlusImgLoader<FloatType> createFloatFromGray8(ij.ImagePlus imp, ImagePlusImgLoader.MinMaxOption minMaxOption, double min, double max)
public static ImagePlusImgLoader<UnsignedShortType> createGray16(ij.ImagePlus imp, ImagePlusImgLoader.MinMaxOption minMaxOption, double min, double max)
public static ImagePlusImgLoader<UnsignedShortType> createGray32(ij.ImagePlus imp, ImagePlusImgLoader.MinMaxOption minMaxOption, double min, double max)
public void clearCache()
public ImagePlusImgLoader.SetupImgLoader<?> getSetupImgLoader(int setupId)
BasicImgLoader
BasicSetupImgLoader
for the specified view setup.getSetupImgLoader
in interface BasicImgLoader
getSetupImgLoader
in interface BoundedTypeBasicImgLoader<T extends Type<T>>
getSetupImgLoader
in interface TypedBasicImgLoader<T extends Type<T>>
setupId
- view setup for which to get the BasicSetupImgLoader
.BasicSetupImgLoader
for the specified view setup.Copyright © 2015–2021 Fiji. All rights reserved.