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:ChannelMapCreator
Creates theChannelMap
.- Specified by:
create
in classChannelMapCreator
- Parameters:
openedFile
- an opened image-file containingChannel
s.logger
- a logger for recording informative or error messages.- Returns:
- a
ChannelMap
that assigns names to channels inopenedFile
. - Throws:
CreateException
- if theChannelMap
cannot be successfully created.
-