|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xinapse.multisliceimage.roi.ROIStats
public class ROIStats
A Class containing the statistics that are computed for an ROI.
| Field Summary | |
|---|---|
double |
area
The area of this ROI in square mm. |
Histogram |
histo
The histogram of pixel intensities inside an ROI in intensity units. |
double |
max
The maximum pixel intensity inside an ROI in intensity units. |
double |
mean
The mean pixel intensity inside an ROI in intensity units. |
double |
min
The minimum pixel intensity inside an ROI in intensity units. |
double |
stddev
The standard deviation pixel intensity inside an ROI in intensity units. |
boolean |
validIntensityStats
A flag to indicate that the intensity-based statistics are valid. |
| Constructor Summary | |
|---|---|
ROIStats(double area)
Creates an ROIStats object without valid intensity statistics or histogram of intensities but with a valid area statistic. |
|
ROIStats(double area,
double mean,
double stddev,
double min,
double max)
Creates an ROIStats object with valid intensity and area statistics, but no histogram of intensities. |
|
ROIStats(double area,
double mean,
double stddev,
double min,
double max,
Histogram histo)
Creates an ROIStats object with valid intensity and area statistics, and a histogram of intensities. |
|
ROIStats(ROIStats stats)
Creates a new ROIStats object, copying all values from existing ROIStats. |
|
ROIStats(ROIStats stats,
double area)
Creates a new ROIStats object, copying all values except the area from existing ROIStats. |
|
| Method Summary | |
|---|---|
static ROIStats |
getCumulativeStats(java.util.List<ROIStats> statsList,
PixelDataType dataType)
Returns the cumulative stats for a List of ROIStats. |
double |
getMedian()
|
boolean |
getValidIntensityStats()
Returns whether this ROIStats has valid intensity-related statistics. |
java.lang.String |
getWriteDescription(boolean writeArea,
boolean writeMean,
boolean writeStddev,
boolean writeMin,
boolean writeMax,
boolean writeMedian,
PixelDataType dataType,
ComplexMode complexMode)
Returns a String showing the statistics correctly formatted for writing. |
java.lang.String |
toString()
Returns a java.lang.String describing this ROIStats object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final double area
public final double mean
public final double stddev
public final double min
public final double max
public Histogram histo
public final boolean validIntensityStats
| Constructor Detail |
|---|
public ROIStats(double area)
area - the area within the perimieter of an ROI in square mm.
public ROIStats(double area,
double mean,
double stddev,
double min,
double max)
area - the area within the perimieter of an ROI in square mm.mean - the mean pixel intensity within an ROI.stddev - the standard deviation of pixel intensity within an ROI.min - the minimum pixel intensity within an ROI.max - the maximum pixel intensity within an ROI.
public ROIStats(double area,
double mean,
double stddev,
double min,
double max,
Histogram histo)
area - the area within the perimieter of an ROI in square mm.mean - the mean pixel intensity within an ROI.stddev - the standard deviation of pixel intensity within an ROI.min - the minimum pixel intensity within an ROI.max - the maximum pixel intensity within an ROI.histo - the histogram of pixel intensities within an ROI.public ROIStats(ROIStats stats)
stats - the ROIStats from which to copy the values.
public ROIStats(ROIStats stats,
double area)
stats - the ROIStats from which to copy all the values except the area.area - the area.| Method Detail |
|---|
public boolean getValidIntensityStats()
public double getMedian()
throws ROIException
ROIException
public java.lang.String getWriteDescription(boolean writeArea,
boolean writeMean,
boolean writeStddev,
boolean writeMin,
boolean writeMax,
boolean writeMedian,
PixelDataType dataType,
ComplexMode complexMode)
writeArea - whether to write the area statistic. If true the area is
written.writeMean - whether to write the mean statistic. If true the mean is
written.writeStddev - whether to write the standard deviation statistic. If true
the standard deviation is written.writeMin - whether to write the minimum statistic. If true the minimum is
written.writeMax - whether to write the maximum statistic. If true the maximum is
written.writeMedian - whether to write the median statistic. If true the median is
written.dataType - the PixelDataType of the image for which these statistics
were created. Needed because Complex images statistics are annotated according to
the ComplexMode.complexMode - the ComplexMode which reflects which property of a
Complex image these statistics represent.
public static ROIStats getCumulativeStats(java.util.List<ROIStats> statsList,
PixelDataType dataType)
Note: if any of the ROIStats in the list has invalid intensity statistics, then the returned ROIStats will have invalid intensity statistics.
statsList - the java.util.List of ROIStats for which to compute
the total statistics.
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||