cpp
Class StarFinder
java.lang.Object
cpp.StarFinder
public class StarFinder
- extends Object
|
Method Summary |
double |
apertureMag(int x0,
int y0,
double fwhm,
int sbox)
|
private int |
destroyCppObj()
|
int |
enhanceImage(float fwhm,
float trunc)
|
int |
findStars(int dataMin,
int dataMax,
int sBoxSize,
int frame)
|
void |
freeCpp()
|
double |
getBackground(int x0,
int y0,
int sbox)
|
int |
getCounts(int x0,
int y0,
int sbox)
|
double |
getInsideFlux(int sbox,
double fwhm)
|
int |
getMedian(int what)
|
int |
getNObjects()
|
int |
getNParams()
|
Map[] |
getObjectList(String sortKey)
Returns a sorted HashMap array with the list of the
object parameters. |
private int |
getObjectListNative(double[] objects)
|
int |
lowpassFilter(float[] kernel,
int[] kDims)
|
private int |
makeCppObj(String fitsFile,
String bias,
double btime,
String dark,
double dtime,
double expose)
Makes the C++ class instance and
stores its pointer address in
java instance's cache variable. |
int |
medianFilter(int fSize,
float level)
|
int |
prepareCleared()
|
int |
replace(int x,
int y,
int box,
int median)
|
int |
writeFITS(String filename,
int what)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cppObjCache
private int cppObjCache
NPARS_EXPECTED
private int NPARS_EXPECTED
StarFinder
public StarFinder(String fitsFile,
String bias,
double btime,
String dark,
double dtime,
double exposure)
makeCppObj
private int makeCppObj(String fitsFile,
String bias,
double btime,
String dark,
double dtime,
double expose)
- Makes the C++ class instance and
stores its pointer address in
java instance's cache variable.
destroyCppObj
private int destroyCppObj()
lowpassFilter
public int lowpassFilter(float[] kernel,
int[] kDims)
medianFilter
public int medianFilter(int fSize,
float level)
enhanceImage
public int enhanceImage(float fwhm,
float trunc)
prepareCleared
public int prepareCleared()
findStars
public int findStars(int dataMin,
int dataMax,
int sBoxSize,
int frame)
getBackground
public double getBackground(int x0,
int y0,
int sbox)
getCounts
public int getCounts(int x0,
int y0,
int sbox)
getInsideFlux
public double getInsideFlux(int sbox,
double fwhm)
apertureMag
public double apertureMag(int x0,
int y0,
double fwhm,
int sbox)
getNObjects
public int getNObjects()
getNParams
public int getNParams()
getObjectListNative
private int getObjectListNative(double[] objects)
writeFITS
public int writeFITS(String filename,
int what)
getMedian
public int getMedian(int what)
replace
public int replace(int x,
int y,
int box,
int median)
getObjectList
public Map[] getObjectList(String sortKey)
- Returns a sorted HashMap array with the list of the
object parameters. The sorting key is specified
as the method's argument.
The possible keys are as follows:
- xc - centroid x-coordinate
- yc - centroid y-coordinate
- mag - instrumental magnitude
- sharpness - object's sharpness
- E - elongation
- Theta_deg - object's inclination in degrees
- area - # of pixels in the search box
within the allowed data range
- sky - instrumental sky value: average
of the pixels contributed to the area
- Parameters:
sortKey - String specifying the sorting key.
- Returns:
- sorted HashMap array.
freeCpp
public void freeCpp()