public abstract class ImageTransform extends DataTransform
Modifier and Type | Field and Description |
---|---|
static ScaledUnit |
MICRON
Micron unit.
|
protected double |
micronHeight
Physical image dimensions in microns.
|
protected double |
micronStep
Physical image dimensions in microns.
|
protected double |
micronWidth
Physical image dimensions in microns.
|
protected RealType |
xType
X-axis type.
|
protected RealType |
yType
Y-axis type.
|
protected RealType |
zType
Z-axis type.
|
Constructor and Description |
---|
ImageTransform()
Constructs an uninitialized image transform.
|
ImageTransform(DataTransform parent,
String name)
Creates an image transform with the given transform as its parent.
|
ImageTransform(DataTransform parent,
String name,
double width,
double height,
double step)
Creates an image transform with the given transform as its parent, that is
dimensioned according to the specified values in microns.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDisplay3D()
Gets whether this data object can be displayed in 3D.
|
Data |
getData(TransformLink link,
int[] pos,
int dim,
DataCache cache)
Retrieves the data corresponding to the given dimensional position, for the
given display dimensionality.
|
String |
getHTMLDescription()
Gets a description of this transform, with HTML markup.
|
BufferedImage |
getImage(int[] pos)
Obtains an image from the source(s) at the given dimensional position.
|
abstract int |
getImageHeight()
Gets the height in pixels of each image.
|
Unit[] |
getImageUnits()
Gets X and Y units for use with image domain sets, computed from micron
information.
|
abstract int |
getImageWidth()
Gets the width in pixels of each image.
|
double |
getMicronHeight()
Gets physical image height in microns.
|
double |
getMicronStep()
Gets physical distance between image slices in microns.
|
double |
getMicronStep(int axis)
Gets physical distance between image slices in microns for the given axis.
|
double |
getMicronWidth()
Gets physical image width in microns.
|
abstract int |
getRangeCount()
Gets number of range components at each pixel.
|
RealType[] |
getRangeTypes()
Gets the RealTypes used for the range components.
|
ScalarMap[] |
getSuggestedMaps()
Retrieves a set of mappings for displaying this transform effectively.
|
FunctionType |
getType()
Gets MathType of images generated by this image transform.
|
RealType |
getXType()
Gets the RealType used for the X-axis.
|
RealType |
getYType()
Gets the RealType used for the Y-axis.
|
RealType |
getZType()
Gets the RealType used for the Z-axis.
|
Unit |
getZUnit(int axis)
Gets Z unit for use with image stack domain sets, computed from micron
information.
|
boolean |
isImmediate()
Most image transforms are not rendered immediately.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element (a child of
"DataTransforms").
|
void |
saveState(Element el)
Writes the current state to the given DOM element (a child of
"DataTransforms").
|
addTransformListener, canDisplay2D, discard, displayChanged, getCacheId, getControls, getDimTypes, getFont, getLabels, getLengths, getName, getParent, getThumbHandler, getTransformId, getUnitDescription, initState, isCompatible, isValidDimension, makeLabels, matches, notifyListeners, removeTransformListener, setFont, toString
public static final ScaledUnit MICRON
protected double micronWidth
protected double micronHeight
protected double micronStep
protected RealType xType
protected RealType yType
protected RealType zType
public ImageTransform()
public ImageTransform(DataTransform parent, String name)
public ImageTransform(DataTransform parent, String name, double width, double height, double step)
public abstract int getImageWidth()
public abstract int getImageHeight()
public abstract int getRangeCount()
public BufferedImage getImage(int[] pos)
public double getMicronWidth()
public double getMicronHeight()
public double getMicronStep()
public double getMicronStep(int axis)
public RealType getXType()
public RealType getYType()
public RealType getZType()
public RealType[] getRangeTypes()
public FunctionType getType()
public Unit[] getImageUnits()
public Unit getZUnit(int axis)
public Data getData(TransformLink link, int[] pos, int dim, DataCache cache)
getData
in class DataTransform
public ScalarMap[] getSuggestedMaps()
getSuggestedMaps
in class DataTransform
public boolean isImmediate()
isImmediate
in class DataTransform
public boolean canDisplay3D()
canDisplay3D
in class DataTransform
public String getHTMLDescription()
getHTMLDescription
in class DataTransform
public void saveState(Element el) throws SaveException
saveState
in interface Saveable
saveState
in class DataTransform
SaveException
public void restoreState(Element el) throws SaveException
restoreState
in interface Saveable
restoreState
in class DataTransform
SaveException
Copyright © 2015–2022 SciJava. All rights reserved.