Class HistogramFactory
Object
HistogramFactory
Creates a
Histogram to describe the intensity values of voxels in aggregate.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic HistogramcreateFrom(VoxelBuffer<?> buffer) Creates aHistogramof the aggregated voxel intensities in aVoxelBuffer.static HistogramcreateFrom(VoxelsUntyped voxels) Creates aHistogramof the aggregated voxel intensities in aVoxelsUntyped.
-
Method Details
-
createFrom
Creates aHistogramof 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 aHistogramof 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.
-