Class ProjectableBufferAggregator<T>
Object
AnchorBean<ChannelAggregator>
ChannelAggregator
ProjectableBufferAggregator<T>
- Type Parameters:
T- buffer type used for aggregationUnsignedByteBufferetc.
- 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddChannelAfterCheck(Channel channel) protected abstract ProjectableBuffer<T> create(VoxelDataType dataType, Extent extent) Creates theProjectableBufferused for aggregation.protected Optional<Dimensions> protected ChannelMethods inherited from class org.anchoranalysis.image.bean.channel.ChannelAggregator
addChannel, aggregatedChannel, maybeDropResolutionMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ProjectableBufferAggregator
public ProjectableBufferAggregator()
-
-
Method Details
-
existingDimensions
- Specified by:
existingDimensionsin classChannelAggregator
-
addChannelAfterCheck
protected void addChannelAfterCheck(Channel channel) throws OperationFailedException - Specified by:
addChannelAfterCheckin classChannelAggregator- Throws:
OperationFailedException
-
retrieveCreateAggregatedChannel
protected Channel retrieveCreateAggregatedChannel()- Specified by:
retrieveCreateAggregatedChannelin classChannelAggregator
-
create
protected abstract ProjectableBuffer<T> create(VoxelDataType dataType, Extent extent) throws OperationFailedException Creates theProjectableBufferused for aggregation.- Parameters:
dataType- the data-type to use for the aggregated channel.extent- the size of the aggregated channel.- Returns:
- a newly created
ProjectableBufferof specified type and size. - Throws:
OperationFailedException- if a buffer-type is unsupported.
-