|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.aerith.misao.image.PSFComparer
The PSFComparer is a class to compare two point spread
functions.
The method calculateProportionTo calculates the proportion k which minimizes the amount of square of residuals:
\sigma_{x} { f(x,y) - k * p(x,y) } ^ 2
where f(x,y) means the specified PSF, and p(x,y)
means the base PSF.
The k is calculated as:
\sigma_{x} { f(x,y) * p(x,y) }
k = --------------------------------
\sigma_{x} p(x,y) ^ 2
in the least square method.
| Field Summary | |
protected PSF |
base_psf
The base PSF. |
protected double |
essential_radius
The radius from the center not to reject. |
protected double |
rejected_ratio
The ratio of pixels to be rejected to calculate the proportion. |
protected java.util.Vector |
rejected_scopes
The list of sight scopes to be rejected. |
| Constructor Summary | |
PSFComparer(PSF base_psf)
Constructs a PSFComparer. |
|
| Method Summary | |
void |
addRejectedSightScope(SightScope scope)
Adds a sight scope to reject pixels within. |
double |
calculateProportionTo(PSF psf)
Calculates the proportion to the specified PSF from the base PSF. |
void |
setEssentialRadius(double radius)
Sets the radius from the center not to reject. |
void |
setRejectedRatio(double ratio)
Sets the ratio of pixels to be rejected to calculate the proportion. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected PSF base_psf
protected double rejected_ratio
protected double essential_radius
protected java.util.Vector rejected_scopes
| Constructor Detail |
public PSFComparer(PSF base_psf)
PSFComparer.base_psf - the base PSF.| Method Detail |
public void setRejectedRatio(double ratio)
ratio - the ratio of pixels to be rejected to calculate
the proportion.public void setEssentialRadius(double radius)
radius - the radius from the center not to reject.public void addRejectedSightScope(SightScope scope)
scope - a sight scope to reject pixels within.public double calculateProportionTo(PSF psf)
psf - the PSF.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||