Class GroupedSharedState<S,T>
Object
org.anchoranalysis.plugin.image.task.grouped.GroupedSharedState<S,T>
- Type Parameters:
S- individual-typeT- aggregate-type
public class GroupedSharedState<S,T> extends Object
Commonality between shared state for grouped export tasks.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description GroupedSharedState(Optional<org.anchoranalysis.io.input.grouper.InputGrouper> grouper, Function<org.anchoranalysis.image.bean.nonbean.ConsistentChannelChecker,GroupMapByName<S,T>> createGroupMap) -
Method Summary
Modifier and Type Method Description org.anchoranalysis.image.bean.nonbean.ConsistentChannelCheckergetChannelChecker()Checks thatChannels have a consistent voxel-data type.ConsistentChannelNamesCheckergetChannelNamesChecker()Checks that each image provides a consistent set of channels, and that they have the same RGB-state.Optional<org.anchoranalysis.io.input.grouper.InputGrouper>getGrouper()How to group the inputs.GroupMapByName<S,T>getGroupMap()Gets the group map, creating it if it doesn't exist yet.
-
Constructor Details
-
GroupedSharedState
public GroupedSharedState(Optional<org.anchoranalysis.io.input.grouper.InputGrouper> grouper, Function<org.anchoranalysis.image.bean.nonbean.ConsistentChannelChecker,GroupMapByName<S,T>> createGroupMap)
-
-
Method Details
-
getGroupMap
Gets the group map, creating it if it doesn't exist yet.- Returns:
- the
GroupMapByNameinstance.
-
getChannelChecker
public org.anchoranalysis.image.bean.nonbean.ConsistentChannelChecker getChannelChecker()Checks thatChannels have a consistent voxel-data type. -
getChannelNamesChecker
Checks that each image provides a consistent set of channels, and that they have the same RGB-state. -
getGrouper
How to group the inputs.
-