Class ChannelGetterForTimepoint
Object
org.anchoranalysis.plugin.image.task.stack.ChannelGetterForTimepoint
public class ChannelGetterForTimepoint extends Object
A wrapper around
ChannelGetter that retrieves channels for a specific timepoint.-
Constructor Summary
Constructors Constructor Description ChannelGetterForTimepoint(org.anchoranalysis.image.io.channel.input.ChannelGetter getter, int t) -
Method Summary
Modifier and Type Method Description org.anchoranalysis.image.core.channel.ChannelgetChannel(String channelName, org.anchoranalysis.core.log.Logger logger)Retrieves a channel with the given name for the specified timepoint.booleanhasChannel(String channelName)Checks if a channel with the given name exists.
-
Constructor Details
-
ChannelGetterForTimepoint
public ChannelGetterForTimepoint(org.anchoranalysis.image.io.channel.input.ChannelGetter getter, int t)
-
-
Method Details
-
hasChannel
Checks if a channel with the given name exists.- Parameters:
channelName- the name of the channel to check- Returns:
- true if the channel exists, false otherwise
-
getChannel
public org.anchoranalysis.image.core.channel.Channel getChannel(String channelName, org.anchoranalysis.core.log.Logger logger) throws org.anchoranalysis.core.index.GetOperationFailedExceptionRetrieves a channel with the given name for the specified timepoint.- Parameters:
channelName- the name of the channel to retrievelogger- the logger to use for any logging operations- Returns:
- the
Channelfor the specified name and timepoint - Throws:
org.anchoranalysis.core.index.GetOperationFailedException- if the channel retrieval operation fails
-