public class BlobMeas extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<BlobMeas>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
long[] |
accurateBrightnesses
As measured using a guard ring and having allowed for the background,
null if not done
|
int |
area
Area in pixels of the blob as initially detected.
|
Statistics[] |
backgroundStatistics
As measured from a guard ring, null if not done.
|
Blob |
blob
Reference to the blob that was measured.
|
double |
brightness
As measured when blob was initially detected.
|
PointFloat |
centre
Centre of gravity of the blob as initially detected.
|
long[] |
channelBrightnesses
As measured when blob was initially detected.
|
int |
maxX
Extremes of the detected boundary.
|
int |
maxY
Extremes of the detected boundary.
|
int |
minX
Extremes of the detected boundary.
|
int |
minY
Extremes of the detected boundary.
|
int |
nPixelsMeasured
The number of pixels in the inner disc used for accurate brightness
measurement, 0 if that has not been done.
|
double[] |
peaks
The brightest levels in the blob (not necessarily all at the same pixel).
|
float[] |
snRatios
Signal/noise ratios determined when accurate brightnesses were measured.
|
Constructor and Description |
---|
BlobMeas() |
Modifier and Type | Method and Description |
---|---|
double |
calculateCircularity()
Returns the ratio of radius from perimeter (perim / 2pi) to radius from
area (sqrt (area/pi)).
|
BlobMeas |
clone()
Does a deep copy of everything except the blob, for which the reference is
copied.
|
int |
compareTo(BlobMeas other)
To enable sorting on reverse order of brightness.
|
Star |
getOrCreateStar()
Return star associated with blob; but create one (and set it in this
BlobMeas) if none yet exists.
|
Star |
getStar()
Get a reference to the star with which this blob has been identified.
|
void |
setStar(Star star)
Identify this blob as a particular star (having Hipparcos/Tycho/etc data).
|
void |
showSummary()
Show a summary of all the data in a message box.
|
java.lang.String |
toHoverString()
Get a description for display in the GlassPane in BLOB_HOVER drawing mode.
|
java.lang.String |
toString()
Get a simple description of the BlobMeas
|
java.lang.StringBuffer |
toSummary(java.lang.String lineFeed)
Build a summary of all the data.
|
java.lang.StringBuffer |
toXML(java.lang.String indent)
The indent would typically be some tabs, eg "\t\t".
|
public double brightness
public long[] channelBrightnesses
public double[] peaks
public Statistics[] backgroundStatistics
public long[] accurateBrightnesses
public float[] snRatios
public int nPixelsMeasured
public PointFloat centre
public int area
public Blob blob
public int minX
public int minY
public int maxX
public int maxY
public Star getStar()
public Star getOrCreateStar()
public double calculateCircularity()
public void setStar(Star star)
public int compareTo(BlobMeas other)
compareTo
in interface java.lang.Comparable<BlobMeas>
public BlobMeas clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toHoverString()
public java.lang.StringBuffer toSummary(java.lang.String lineFeed)
public void showSummary()
public java.lang.StringBuffer toXML(java.lang.String indent)