|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.grip.BlobMeas
public class BlobMeas
Record to hold measurements made on a Blob. This includes geometrical measurements and brightness measurements. By brightness is meant integrated grey level, which some books call digital number (DN) or analogue-to-digital output units (ADU). Brightness is recorded for each channel of an image and also the the total brightness which is the square root of the sum of the squares of the individual channel brightnesses: that is calculated and held here rather than repeatedly recalculating it.
| Field Summary | |
|---|---|
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. |
float[] |
snRatios
Signal/noise ratios determined when accurate brightnesses were measured. |
| Constructor Summary | |
|---|---|
BlobMeas()
|
|
| Method Summary | |
|---|---|
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. |
static void |
drawBoundaries(ImFrame imframe,
BlobMeasList blobMeases)
Draw blob boundaries from the given blob measurements into the GlassPane of the given ImFrame and redisplay the image. 9.11.29: Deprecated: use instead a non-static method of the same name in BlobMeasList. |
static BlobMeas |
getNearestBlob(BlobMeasList blobMeases,
int xx,
int yy)
Deprecated. |
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). |
static void |
showBrightestBlobs(ImFrame imframe,
BlobMeasList blobMeases)
Draw brightest blobs into the GlassPane of the given ImFrame and redisplay the image. |
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 |
toXML(java.lang.String indent)
The indent would typically be some tabs, eg "\t\t". |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double brightness
public long[] channelBrightnesses
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
| Constructor Detail |
|---|
public BlobMeas()
| Method Detail |
|---|
public Star getStar()
public Star getOrCreateStar()
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.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toHoverString()
public void showSummary()
public java.lang.StringBuffer toXML(java.lang.String indent)
public static void drawBoundaries(ImFrame imframe,
BlobMeasList blobMeases)
public static void showBrightestBlobs(ImFrame imframe,
BlobMeasList blobMeases)
@Deprecated
public static BlobMeas getNearestBlob(BlobMeasList blobMeases,
int xx,
int yy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||