Class VoxelPartitonFactoryHistogram

Object
org.anchoranalysis.mpp.index.factory.VoxelPartitonFactoryHistogram
All Implemented Interfaces:
VoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>

public class VoxelPartitonFactoryHistogram
extends Object
implements VoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>
A factory for creating VoxelPartition instances that use Histograms as parts.

This implementation creates VoxelPartitionHistogram objects with histograms of 256 bins (0-255).

  • Constructor Details

  • Method Details

    • create

      public VoxelPartition<org.anchoranalysis.math.histogram.Histogram> create​(int numSlices)
      Creates a new VoxelPartitionHistogram with the specified number of slices.
      Specified by:
      create in interface VoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>
      Parameters:
      numSlices - the number of slices in the voxel partition
      Returns:
      a new VoxelPartitionHistogram instance
    • addUnused

      public void addUnused​(org.anchoranalysis.math.histogram.Histogram part)
      Adds an unused histogram to the factory.

      This implementation does nothing, as histograms are not reused.

      Specified by:
      addUnused in interface VoxelPartitionFactory<org.anchoranalysis.math.histogram.Histogram>
      Parameters:
      part - the unused histogram