Class HistogramFactory
Object
HistogramFactory
Creates a
Histogram
to describe the intensity values of voxels in aggregate.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic Histogram
createFrom
(VoxelBuffer<?> buffer) Creates aHistogram
of the aggregated voxel intensities in aVoxelBuffer
.static Histogram
createFrom
(VoxelsUntyped voxels) Creates aHistogram
of the aggregated voxel intensities in aVoxelsUntyped
.
-
Method Details
-
createFrom
Creates aHistogram
of the aggregated voxel intensities in aVoxelBuffer
.- Parameters:
buffer
- the buffer, whose voxel intensity values are aggregated into aHistogram
.- Returns:
- a newly created histogram.
-
createFrom
Creates aHistogram
of the aggregated voxel intensities in aVoxelsUntyped
.Irrespective of the underlying type in
voxels
, the maximum accepted value for bins is always 65535.The minimum accepted value is always
0
(for unsigned types) or the floor of the lowest value for floating-point values.Floating-point values are converted to an integer.
- Parameters:
voxels
- theVoxelsUntyped
, whose voxel intensity values are aggregated into aHistogram
.- Returns:
- a newly created histogram.
-