Class ProjectableBufferAggregator<T>

Object
AnchorBean<ChannelAggregator>
ChannelAggregator
ProjectableBufferAggregator<T>
Type Parameters:
T - buffer type used for aggregation UnsignedByteBuffer etc.
Direct Known Subclasses:
MaxProjection, MeanProjection, MinProjection, StandardDeviationProjection

public abstract class ProjectableBufferAggregator<T> extends ChannelAggregator
An aggregator that calculates the aggregation of every voxel across successive channels via a ProjectableBuffer.

This is achieved by maintaining a running sum for each voxel, and a total count of how many images were added.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addChannelAfterCheck(Channel channel)
     
    protected abstract ProjectableBuffer<T>
    create(VoxelDataType dataType, Extent extent)
    Creates the ProjectableBuffer used for aggregation.
    protected Optional<Dimensions>
     
    protected Channel
     

    Methods inherited from class org.anchoranalysis.image.bean.channel.ChannelAggregator

    addChannel, aggregatedChannel, maybeDropResolution

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProjectableBufferAggregator

      public ProjectableBufferAggregator()
  • Method Details

    • existingDimensions

      protected Optional<Dimensions> existingDimensions()
      Specified by:
      existingDimensions in class ChannelAggregator
    • addChannelAfterCheck

      protected void addChannelAfterCheck(Channel channel) throws OperationFailedException
      Specified by:
      addChannelAfterCheck in class ChannelAggregator
      Throws:
      OperationFailedException
    • retrieveCreateAggregatedChannel

      protected Channel retrieveCreateAggregatedChannel()
      Specified by:
      retrieveCreateAggregatedChannel in class ChannelAggregator
    • create

      protected abstract ProjectableBuffer<T> create(VoxelDataType dataType, Extent extent) throws OperationFailedException
      Creates the ProjectableBuffer used for aggregation.
      Parameters:
      dataType - the data-type to use for the aggregated channel.
      extent - the size of the aggregated channel.
      Returns:
      a newly created ProjectableBuffer of specified type and size.
      Throws:
      OperationFailedException - if a buffer-type is unsupported.