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
HistogramKey s 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
HistogramKey
s and HistogramBin
sc
- a Cursor corresponding to the Image from which the Histogram
will be calculatedpublic ArrayList<HistogramKey<T>> getKeys()
HistogramKey
s generated
when calculating this Histogram.HistogramKey
s 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
HistogramBin
public HistogramBin<T> getBin(HistogramKey<T> key)
HistogramKey
.key
- the HistogramKey corresponding to the requested
HistogramBin
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public long getProcessingTime()
getProcessingTime
in interface Benchmark
Copyright © 2015–2021 Fiji. All rights reserved.