|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.MagnitudeTranslationFormula
The MagnitudeTranslationFormula
represents a formula
to convert pixel value into magnitude.
The parameters represents the following formula.
magnitude = base_magnitude + gradient * log_2.5 ( value )
Field Summary | |
protected double |
base_magnitude
The base magnitude. |
protected double |
gradient
The gradient. |
static int |
MODE_CALCULATE_GRADIENT
The mode which represents to calculate both the base magnitude and the gradient. |
static int |
MODE_FIX_GRADIENT
The mode which represents to fix the gradient as -1. |
Constructor Summary | |
MagnitudeTranslationFormula()
Constructs a MagnitudeTranslationFormula . |
|
MagnitudeTranslationFormula(java.util.Vector pair_list,
int mode)
Constructs a MagnitudeTranslationFormula based on
the specified list of StarPair which consists of
a detected star image and a catalog data. |
Method Summary | |
double |
convertToMagnitude(double value)
Converts the specified pixel value into magnitude. |
double |
convertToPixelValue(double magnitude)
Converts the specified magnitude into pixel value. |
static MagnitudeTranslationFormula |
create(java.lang.String string)
Creates a MagnitudeTranslationFormula object from
the String object which represents the formula. |
double |
getBaseMagnitude()
Gets the base magnitude. |
double |
getGradient()
Gets the gradient. |
java.lang.String |
getOutputString()
Returns a string representation of the state of this object. |
protected java.lang.String |
paramString()
Returns a raw string representation of the state of this object, for debugging use. |
void |
setBaseMagnitude(double new_magnitude)
Sets the base magnitude. |
void |
setGradient(double new_gradient)
Sets the gradient. |
java.lang.String |
toString()
Returns a string representation of the state of this object, for debugging use. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected double base_magnitude
protected double gradient
public static final int MODE_FIX_GRADIENT
public static final int MODE_CALCULATE_GRADIENT
Constructor Detail |
public MagnitudeTranslationFormula()
MagnitudeTranslationFormula
.public MagnitudeTranslationFormula(java.util.Vector pair_list, int mode)
MagnitudeTranslationFormula
based on
the specified list of StarPair
which consists of
a detected star image and a catalog data. Depending on the
specified mode number, the gradient can be fixed as -1, or
calculated to fit the data in the specified list.pair_list
- the list of pairs of a detected star image and
a catalog data.mode
- the mode to calculate the formula, to fix the
gradient as -1 or not.Method Detail |
public double getBaseMagnitude()
public void setBaseMagnitude(double new_magnitude)
new_magnitude
- the new base magnitude.public double getGradient()
public void setGradient(double new_gradient)
new_gradient
- the new gradient.public double convertToMagnitude(double value)
value
- the pixel value to convert.public double convertToPixelValue(double magnitude)
magnitude
- the magnitude to convert.public static MagnitudeTranslationFormula create(java.lang.String string)
MagnitudeTranslationFormula
object from
the String
object which represents the formula.string
- the string which represents the formula.MagnitudeTranslationFormula
object
of the specified string.public java.lang.String getOutputString()
protected java.lang.String paramString()
toString
method of the subclasses.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |