cpp
Class StarFinder

java.lang.Object
  extended by cpp.StarFinder

public class StarFinder
extends Object


Nested Class Summary
static class StarFinder.Test
          Test the class.
 
Field Summary
private  int cppObjCache
           
private  int NPARS_EXPECTED
           
 
Constructor Summary
StarFinder(String fitsFile, String bias, double btime, String dark, double dtime, double exposure)
           
 
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
 

Field Detail

cppObjCache

private int cppObjCache

NPARS_EXPECTED

private int NPARS_EXPECTED
Constructor Detail

StarFinder

public StarFinder(String fitsFile,
                  String bias,
                  double btime,
                  String dark,
                  double dtime,
                  double exposure)
Method Detail

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:

Parameters:
sortKey - String specifying the sorting key.
Returns:
sorted HashMap array.

freeCpp

public void freeCpp()