Modifier and Type | Method and Description |
---|---|
static Histogram |
createFrom(VoxelBuffer<?> buffer)
Creates a
Histogram of the aggregated voxel intensities in a VoxelBuffer . |
static Histogram |
createFrom(VoxelsUntyped voxels)
Creates a
Histogram of the aggregated voxel intensities in a VoxelsUntyped . |
public static Histogram createFrom(VoxelBuffer<?> buffer)
Histogram
of the aggregated voxel intensities in a VoxelBuffer
.buffer
- the buffer, whose voxel intensity values are aggregated into a Histogram
.public static Histogram createFrom(VoxelsUntyped voxels)
Histogram
of the aggregated voxel intensities in a VoxelsUntyped
.
Irrespective of the underlying type in voxels
, the maximum accepted value for bins
is always .
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.
voxels
- the VoxelsUntyped
, whose voxel intensity values are aggregated into a
Histogram
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.