Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/measure/Calibration.html
Дата изменения: Thu Dec 2 23:03:10 2010 Дата индексирования: Mon Oct 1 22:25:03 2012 Кодировка: |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.measure.Calibration
public class Calibration
Calibration objects contain an image's spatial and density calibration data.
Field Summary | |
---|---|
static int |
CUSTOM
|
static int |
EXPONENTIAL
|
double |
fps
Frame rate in frames per second |
double |
frameInterval
Frame interval in 'timeUnit's |
static int |
GAMMA_VARIATE
|
java.lang.String |
info
Plugin writers can use this string to store information about the image. |
static int |
LOG
|
static int |
LOG2
|
boolean |
loop
Loop back and forth when animating stack |
static int |
NONE
|
double |
pixelDepth
Pixel depth in 'unit's |
double |
pixelHeight
Pixel height in 'unit's |
double |
pixelWidth
Pixel width in 'unit's |
static int |
POLY2
|
static int |
POLY3
|
static int |
POLY4
|
static int |
POWER
|
static int |
RODBARD
|
static int |
RODBARD2
|
static int |
STRAIGHT_LINE
|
static int |
UNCALIBRATED_OD
|
double |
xOrigin
X origin in pixels. |
double |
yOrigin
Y origin in pixels. |
double |
zOrigin
Z origin in pixels. |
Constructor Summary | |
---|---|
Calibration()
Constructs a new Calibration object using the default values. |
|
Calibration(ImagePlus imp)
Constructs a new Calibration object using the default values. |
Method Summary | |
---|---|
boolean |
calibrated()
Returns true if this image is density calibrated. |
java.lang.Object |
clone()
|
Calibration |
copy()
Returns a clone of this object. |
void |
disableDensityCalibration()
|
boolean |
equals(Calibration cal)
Compares two Calibration objects for equality. |
double[] |
getCoefficients()
Returns the calibration function coefficients. |
float[] |
getCTable()
Returns the calibration table. |
double |
getCValue(double value)
Converts a raw pixel value to a density calibrated value. |
double |
getCValue(int value)
Converts a raw pixel value to a density calibrated value. |
int |
getFunction()
Returns the calibration function ID. |
double |
getRawValue(double value)
Converts a density calibrated value into a raw pixel value. |
java.lang.String |
getTimeUnit()
Returns the distance unit (e.g. |
java.lang.String |
getUnit()
Returns the default length unit (e.g. |
java.lang.String |
getUnits()
Returns the plural form of the length unit (e.g. |
java.lang.String |
getValueUnit()
Returns the value unit. |
double |
getX(double x)
Converts a x-coodinate in pixels to physical units (e.g. |
java.lang.String |
getXUnit()
Returns the X length unit. |
double |
getY(double y)
Converts a y-coodinate in pixels to physical units (e.g. |
double |
getY(double y,
int imageHeight)
Converts a y-coodinate in pixels to physical units (e.g. |
java.lang.String |
getYUnit()
Returns the Y length unit, or the default unit if 'yunit' is null. |
double |
getZ(double z)
Converts a z-coodinate in pixels to physical units (e.g. |
java.lang.String |
getZUnit()
Returns the Z length unit, or the default unit if 'zunit' is null. |
boolean |
isSigned16Bit()
Returns true if this is a signed 16-bit image. |
boolean |
scaled()
Returns true if this image is spatially calibrated. |
void |
setCTable(float[] table,
java.lang.String unit)
Sets the calibration table. |
void |
setFunction(int function,
double[] coefficients,
java.lang.String unit)
Sets the calibration function, coefficient table and unit (e.g. |
void |
setFunction(int function,
double[] coefficients,
java.lang.String unit,
boolean zeroClip)
|
void |
setImage(ImagePlus imp)
Disables the density calibation if the specified image has a differenent bit depth. |
void |
setInvertY(boolean invertYCoordinates)
Sets the 'invertY' flag. |
void |
setTimeUnit(java.lang.String unit)
Sets the time unit (e.g. |
void |
setUnit(java.lang.String unit)
Sets the default length unit (e.g. |
void |
setValueUnit(java.lang.String unit)
Sets the value unit. |
void |
setXUnit(java.lang.String unit)
Sets the X length unit. |
void |
setYUnit(java.lang.String unit)
Sets the Y length unit. |
void |
setZUnit(java.lang.String unit)
Sets the Z length unit. |
java.lang.String |
toString()
|
boolean |
zeroClip()
Returns true if zero clipping is enabled. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STRAIGHT_LINE
public static final int POLY2
public static final int POLY3
public static final int POLY4
public static final int EXPONENTIAL
public static final int POWER
public static final int LOG
public static final int RODBARD
public static final int GAMMA_VARIATE
public static final int LOG2
public static final int RODBARD2
public static final int NONE
public static final int UNCALIBRATED_OD
public static final int CUSTOM
public double pixelWidth
public double pixelHeight
public double pixelDepth
public double frameInterval
public double fps
public boolean loop
public double xOrigin
public double yOrigin
public double zOrigin
public java.lang.String info
Constructor Detail |
---|
public Calibration(ImagePlus imp)
public Calibration()
Method Detail |
---|
public boolean scaled()
public void setUnit(java.lang.String unit)
public void setXUnit(java.lang.String unit)
public void setYUnit(java.lang.String unit)
public void setZUnit(java.lang.String unit)
public java.lang.String getUnit()
public java.lang.String getXUnit()
public java.lang.String getYUnit()
public java.lang.String getZUnit()
public java.lang.String getUnits()
public void setTimeUnit(java.lang.String unit)
public java.lang.String getTimeUnit()
public double getX(double x)
public double getY(double y)
public double getY(double y, int imageHeight)
public double getZ(double z)
public void setFunction(int function, double[] coefficients, java.lang.String unit)
public void setFunction(int function, double[] coefficients, java.lang.String unit, boolean zeroClip)
public void setImage(ImagePlus imp)
public void disableDensityCalibration()
public java.lang.String getValueUnit()
public void setValueUnit(java.lang.String unit)
public double[] getCoefficients()
public boolean calibrated()
public int getFunction()
public float[] getCTable()
public void setCTable(float[] table, java.lang.String unit)
public double getCValue(int value)
public double getCValue(double value)
public double getRawValue(double value)
public Calibration copy()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(Calibration cal)
public boolean isSigned16Bit()
public boolean zeroClip()
public void setInvertY(boolean invertYCoordinates)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |