Class Autoname
Names of the channels from the metadata if it exists, or after RGB, or by index.
Naming rules - in order of priority:
- The channel name from the metadata.
- red, green or blue if it's RGB.
- channel-%d where %d is the index of the channel.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(OpenedImageFile openedFile, Logger logger) Creates theChannelMap.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Autoname
public Autoname()
-
-
Method Details
-
create
Description copied from class:ChannelMapCreatorCreates theChannelMap.- Specified by:
createin classChannelMapCreator- Parameters:
openedFile- an opened image-file containingChannels.logger- a logger for recording informative or error messages.- Returns:
- a
ChannelMapthat assigns names to channels inopenedFile. - Throws:
CreateException- if theChannelMapcannot be successfully created.
-