| Constructor and Description |
|---|
Histogram(HistogramBinFactory<T> factory,
Cursor<T> c)
Create a Histogram using the given factory, calculating from the given
Cursor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
HistogramBin<T> |
getBin(HistogramKey<T> key)
Returns the bin corresponding to a given
HistogramKey. |
HistogramBin<T> |
getBin(T t)
Returns the bin corresponding to a given
Type. |
String |
getErrorMessage() |
ArrayList<HistogramKey<T>> |
getKeys()
Returns an ArrayList containing the
HistogramKeys generated
when calculating this Histogram. |
ArrayList<T> |
getKeyTypes()
Returns the center
Type corresponding to each
HistogramKey generated when calculating this Histogram. |
long |
getProcessingTime() |
boolean |
process() |
public Histogram(HistogramBinFactory<T> factory, Cursor<T> c)
factory - the HistogramBinFactory used to generate
HistogramKeys and HistogramBinsc - a Cursor corresponding to the Image from which the Histogram
will be calculatedpublic ArrayList<HistogramKey<T>> getKeys()
HistogramKeys generated
when calculating this Histogram.HistogramKeys generated
when calculating this Histogram.public ArrayList<T> getKeyTypes()
Type corresponding to each
HistogramKey generated when calculating this Histogram.public HistogramBin<T> getBin(T t)
Type.t - the Type corresponding to the requested
HistogramBinpublic HistogramBin<T> getBin(HistogramKey<T> key)
HistogramKey.key - the HistogramKey corresponding to the requested
HistogramBinpublic boolean checkInput()
checkInput in interface Algorithmpublic String getErrorMessage()
getErrorMessage in interface Algorithmpublic long getProcessingTime()
getProcessingTime in interface BenchmarkCopyright © 2015–2021 Fiji. All rights reserved.