jsky.image.gui
Class PickObjectStatistics

java.lang.Object
  extended by jsky.image.gui.PickObjectStatistics

public class PickObjectStatistics
extends java.lang.Object

Gathers statistics about a given area of the image using a centroid algorithm.

Version:
$Revision: 1.1 $
Author:
Allan Brighton

Field Summary
static int ANGLE
           
static int BACKGROUND
           
static int DEC
           
static java.lang.String[] FIELD_NAMES
          The names of the fields returned by the getRow() or getFields() methods.
static int FWHM_X
           
static int FWHM_Y
           
static int ID
           
static int IMAGE_X
           
static int IMAGE_Y
           
static int NUM_FIELDS
          The number of columns or fields returned by the getRow() or getFields() methods.
static int PEAK
           
static int RA
           
 
Method Summary
 void calculateStatistics(int x, int y, int w, int h)
          Find the center of the object at the given x,y user coordinates using a centroid algorithm and gather statistics on the image object.
 double getAngle()
          angle of major axis, degrees, along X
 WorldCoords getCenterPos()
          The calculated centroid position
static FieldDesc[] getFields()
          Return an array of objects describing the columns returned by getRow().
 double getFwhmX()
          FWHM in X
 double getFwhmY()
          FWHM in Y
 double getImageX()
          The center X position in image coordinates
 double getImageY()
          The center Y position in image coordinates
 double getMeanBackground()
          mean background level
 double getObjectPeak()
          peak value of object above background
 java.util.Vector getRow()
          Return a vector containing the information in this object that can be used to add a row to a catalog table.
 boolean getStatus()
          Return the status of the last pick operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final int ID
See Also:
Constant Field Values

RA

public static final int RA
See Also:
Constant Field Values

DEC

public static final int DEC
See Also:
Constant Field Values

IMAGE_X

public static final int IMAGE_X
See Also:
Constant Field Values

IMAGE_Y

public static final int IMAGE_Y
See Also:
Constant Field Values

FWHM_X

public static final int FWHM_X
See Also:
Constant Field Values

FWHM_Y

public static final int FWHM_Y
See Also:
Constant Field Values

ANGLE

public static final int ANGLE
See Also:
Constant Field Values

PEAK

public static final int PEAK
See Also:
Constant Field Values

BACKGROUND

public static final int BACKGROUND
See Also:
Constant Field Values

FIELD_NAMES

public static final java.lang.String[] FIELD_NAMES
The names of the fields returned by the getRow() or getFields() methods.


NUM_FIELDS

public static final int NUM_FIELDS
The number of columns or fields returned by the getRow() or getFields() methods.

Method Detail

getCenterPos

public WorldCoords getCenterPos()
The calculated centroid position


getImageX

public double getImageX()
The center X position in image coordinates


getImageY

public double getImageY()
The center Y position in image coordinates


getFwhmX

public double getFwhmX()
FWHM in X


getFwhmY

public double getFwhmY()
FWHM in Y


getAngle

public double getAngle()
angle of major axis, degrees, along X


getObjectPeak

public double getObjectPeak()
peak value of object above background


getMeanBackground

public double getMeanBackground()
mean background level


getStatus

public boolean getStatus()
Return the status of the last pick operation


calculateStatistics

public void calculateStatistics(int x,
                                int y,
                                int w,
                                int h)
Find the center of the object at the given x,y user coordinates using a centroid algorithm and gather statistics on the image object.

Parameters:
x - the X user coordinate origin of the region of the image to examine
y - the Y user coordinate origin of the region of the image to examine
w - the width in user coordinates of the area of the image to examine
h - the height in user coordinates of the area of the image to examine

getFields

public static FieldDesc[] getFields()
Return an array of objects describing the columns returned by getRow(). This can be used to create a catalog table to add the rows to.


getRow

public java.util.Vector getRow()
Return a vector containing the information in this object that can be used to add a row to a catalog table. The contents of the vector (column headings, etc.) are described by the result of the getFields() method.