|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.jhu.pha.sdss.fits.ScaleUtils
Current Version =============== ID: $Id: ScaleUtils.html,v 1.1 2004/07/23 22:04:49 carliles Exp $ Revision: $Revision: 1.1 $ Date/time: $Date: 2004/07/23 22:04:49 $Array operations that should be implemented in one method, but which have to be reimplemented for each primitive data type just to have the right type in the damn parameter list.
| Field Summary | |
static int |
ASINH
|
static int |
HIST_EQ
|
static int |
LINEAR
|
static int |
LOG
|
static java.lang.String[] |
SCALE_NAMES
|
static int |
SQUARE
|
static int |
SQUARE_ROOT
|
| Constructor Summary | |
ScaleUtils()
|
|
| Method Summary | |
static double |
arcsinh(double val)
|
static Histogram |
computeHistogram(byte[][] data,
double bZero,
double bScale)
Finds the minimum and maximum data values in data. |
static Histogram |
computeHistogram(double[][] data,
double bZero,
double bScale)
Finds the minimum and maximum data values in data. |
static Histogram |
computeHistogram(float[][] data,
double bZero,
double bScale)
Finds the minimum and maximum data values in data. |
static Histogram |
computeHistogram(int[][] data,
double bZero,
double bScale)
Finds the minimum and maximum data values in data. |
static Histogram |
computeHistogram(short[][] data,
double bZero,
double bScale)
Finds the minimum and maximum data values in data. |
static java.lang.String[] |
getScaleNames()
|
static java.lang.String |
revision()
|
static short[][] |
scaleToUShort(byte[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
|
static short[][] |
scaleToUShort(double[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
|
static short[][] |
scaleToUShort(float[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
|
static short[][] |
scaleToUShort(int[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
|
static short[][] |
scaleToUShort(short[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String[] SCALE_NAMES
public static final int LINEAR
public static final int LOG
public static final int SQUARE_ROOT
public static final int SQUARE
public static final int HIST_EQ
public static final int ASINH
| Constructor Detail |
public ScaleUtils()
| Method Detail |
public static java.lang.String[] getScaleNames()
public static double arcsinh(double val)
public static short[][] scaleToUShort(byte[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
data - The image intensity values indexed by y, then x.width - The width of the image.height - The height of the image.bZero - The value of the BZERO field of the FITS header.bScale - The value of the BSCALE field of the FITS header.min - The minimum input data value over which to scale.max - The maximum input data value over which to scale.
public static short[][] scaleToUShort(short[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
data - The image intensity values indexed by y, then x.width - The width of the image.height - The height of the image.bZero - The value of the BZERO field of the FITS header.bScale - The value of the BSCALE field of the FITS header.min - The minimum input data value over which to scale.max - The maximum input data value over which to scale.
public static short[][] scaleToUShort(int[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
data - The image intensity values indexed by y, then x.width - The width of the image.height - The height of the image.bZero - The value of the BZERO field of the FITS header.bScale - The value of the BSCALE field of the FITS header.min - The minimum input data value over which to scale.max - The maximum input data value over which to scale.
public static short[][] scaleToUShort(float[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
data - The image intensity values indexed by y, then x.width - The width of the image.height - The height of the image.bZero - The value of the BZERO field of the FITS header.bScale - The value of the BSCALE field of the FITS header.min - The minimum input data value over which to scale.max - The maximum input data value over which to scale.
public static short[][] scaleToUShort(double[][] data,
Histogram hist,
int width,
int height,
double bZero,
double bScale,
double min,
double max,
double sigma)
data - The image intensity values indexed by y, then x.width - The width of the image.height - The height of the image.bZero - The value of the BZERO field of the FITS header.bScale - The value of the BSCALE field of the FITS header.min - The minimum input data value over which to scale.max - The maximum input data value over which to scale.
public static Histogram computeHistogram(byte[][] data,
double bZero,
double bScale)
data.
public static Histogram computeHistogram(short[][] data,
double bZero,
double bScale)
data.
public static Histogram computeHistogram(int[][] data,
double bZero,
double bScale)
data.
public static Histogram computeHistogram(float[][] data,
double bZero,
double bScale)
data.
public static Histogram computeHistogram(double[][] data,
double bZero,
double bScale)
data.
public static java.lang.String revision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||