Class HistogramFactory

Object
HistogramFactory

public class HistogramFactory extends Object
Creates a Histogram to describe the intensity values of voxels in aggregate.
Author:
Owen Feehan
  • Method Details

    • createFrom

      public static Histogram createFrom(VoxelBuffer<?> buffer)
      Creates a Histogram of the aggregated voxel intensities in a VoxelBuffer.
      Parameters:
      buffer - the buffer, whose voxel intensity values are aggregated into a Histogram.
      Returns:
      a newly created histogram.
    • createFrom

      public static Histogram createFrom(VoxelsUntyped voxels)
      Creates a Histogram of the aggregated voxel intensities in a VoxelsUntyped.

      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 - the VoxelsUntyped, whose voxel intensity values are aggregated into a Histogram.
      Returns:
      a newly created histogram.