|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.DoubleHistogram
jview.CountHistogram
public class CountHistogram
A count histogramm takes an already calculated histogram and lets classes access it.
| Nested Class Summary | |
|---|---|
protected static class |
CountHistogram.CountBounds
A container class used by the #method. |
| Nested classes/interfaces inherited from interface jview.JHistogram |
|---|
JHistogram.Bounds |
| Field Summary |
|---|
| Fields inherited from class vec_math.DoubleHistogram |
|---|
DEFBINWIDTH |
| Constructor Summary | |
|---|---|
protected |
CountHistogram()
Empty constructor. |
protected |
CountHistogram(double _min,
double _max,
double _av,
int sum,
int[] band)
This method is introduced here to not break the original implementation for calculating the median and mean, which is, to my opinion, of a lower accuracy than the one used on the new class DoubleHistogram. |
| Method Summary | |
|---|---|
static JHistogram |
createHistogram(ColorModel cm,
Raster r,
int band)
Create histogram from a data buffer. |
protected static JHistogram |
createHistogramFromBandArray(int[] bandcount)
We take an unrectified histogram of a band intensity and convert it to a histogram. |
protected static JHistogram |
createHistogramFromByteData(DataBufferByte db,
int index)
We take a data buffer and construct a histogram out of it. |
protected static JHistogram |
createHistogramFromUShortData(DataBufferUShort db,
int index)
We take a data buffer and construct a histogram out of it. |
JHistogram.Bounds |
getBounds(double percentKept)
An instance of Bounds containing the min and max
values that will result in keeping percentKept
percent of the
values in the image. |
JHistogram.Bounds |
getModeBounds(double lo,
double hi)
Returns a mode bound, the given number of standard deviations from the mode. |
JHistogram.Bounds |
getNonsaturatedBounds(double percentKept)
An instance of Bounds containing the min and max
values that will result in keeping percentKept
percent of the
values in the image. |
JHistogram.Bounds |
getUpperBounds(double percentKept)
An instance of Bounds containing the min and max
values that will result in keeping percentKept
percent of the
values in the image. |
| Methods inherited from class vec_math.DoubleHistogram |
|---|
createHistogram, createHistogram, createHistogram, createHistogram, equals, findMedianIndex, findModeIndex, fractionMedianIndex, getAverage, getBinCounts, getBinWidth, getMax, getMedian, getMin, getMode, getTotal, parabolicModeIndex, setAverage, setBinCounts, setMax, setMedian, setMin, setMode, setTotal, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface vec_math.Histogram |
|---|
getAverage, getBinCounts, getBinWidth, getMax, getMedian, getMin, getMode, getTotal |
| Constructor Detail |
|---|
protected CountHistogram()
protected CountHistogram(double _min,
double _max,
double _av,
int sum,
int[] band)
| Method Detail |
|---|
protected static JHistogram createHistogramFromBandArray(int[] bandcount)
protected static JHistogram createHistogramFromByteData(DataBufferByte db,
int index)
protected static JHistogram createHistogramFromUShortData(DataBufferUShort db,
int index)
public static JHistogram createHistogram(ColorModel cm,
Raster r,
int band)
public JHistogram.Bounds getBounds(double percentKept)
Bounds containing the min and max
values that will result in keeping percentKept
percent of the
values in the image. percentKept is a slightly deceptive
name, as it must be in the range [0, 1].
getBounds in interface JHistogrampublic JHistogram.Bounds getNonsaturatedBounds(double percentKept)
Bounds containing the min and max
values that will result in keeping percentKept
percent of the
values in the image. percentKept is a slightly deceptive
name, as it must be in the range [0, 1].
getNonsaturatedBounds in interface JHistogrampublic JHistogram.Bounds getUpperBounds(double percentKept)
Bounds containing the min and max
values that will result in keeping percentKept
percent of the
values in the image. percentKept is a slightly deceptive
name, as it must be in the range [0, 1].
getUpperBounds in interface JHistogram
public JHistogram.Bounds getModeBounds(double lo,
double hi)
JHistogram
getModeBounds in interface JHistogram
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||