public class IntBinMapper<T extends IntegerType<T>> extends Object implements HistogramBinMapper<T>
| Constructor and Description |
|---|
IntBinMapper(T type)
Create an IntBinMapper with minimum and maximum bin centers corresponding
to the minimal and maximal Type values.
|
IntBinMapper(T min,
T max)
Create an IntBinMapper with the given minimum and maximum bins.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getMaxBin()
Returns the maximum bin for the histogram.
|
T |
getMinBin()
Returns the minimum bin for the histogram.
|
int |
getNumBins()
Returns the number of bins for the histogram.
|
T |
invMap(int i)
Maps a given histogram bin index to a Type containing the bin center
value.
|
int |
map(T type)
Maps a given Type to its histogram bin.
|
public IntBinMapper(T min, T max)
min - the minimum bin center.max - the maximum bin center.public IntBinMapper(T type)
type - a representative Type object.public T getMaxBin()
HistogramBinMappergetMaxBin in interface HistogramBinMapper<T extends IntegerType<T>>public T getMinBin()
HistogramBinMappergetMinBin in interface HistogramBinMapper<T extends IntegerType<T>>public int getNumBins()
HistogramBinMappergetNumBins in interface HistogramBinMapper<T extends IntegerType<T>>public T invMap(int i)
HistogramBinMapperinvMap in interface HistogramBinMapper<T extends IntegerType<T>>i - the histogram bin index to map.public int map(T type)
HistogramBinMappermap in interface HistogramBinMapper<T extends IntegerType<T>>type - the Type to map.Copyright © 2015–2022 ImgLib2. All rights reserved.