Class ConsistentChannelNamesChecker
Object
org.anchoranalysis.plugin.image.task.grouped.ConsistentChannelNamesChecker
public class ConsistentChannelNamesChecker extends Object
Checks that each image has an identical set of
Channel-names, and RGB-state.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ConsistentChannelNamesChecker() -
Method Summary
Modifier and Type Method Description voidcheckChannelNames(Set<String> channelNames, boolean rgb)Checks that the channel-names are consistent.Set<String>getChannelNames()The names ofChannels that are consistent across all images.
-
Constructor Details
-
ConsistentChannelNamesChecker
public ConsistentChannelNamesChecker()
-
-
Method Details
-
checkChannelNames
public void checkChannelNames(Set<String> channelNames, boolean rgb) throws org.anchoranalysis.core.exception.OperationFailedExceptionChecks that the channel-names are consistent.- Parameters:
channelNames- the names of the channels to check.rgb- whether these channels originate from an image that is RGB or not.- Throws:
org.anchoranalysis.core.exception.OperationFailedException- if the image do not have identical channel-names or RGB status.
-
getChannelNames
The names ofChannels that are consistent across all images.
-