Class AbstractSelectedImagesFeatureGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.plugin.AbstractToolPlugin<ImagePanel>
-
- adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
-
- adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPlugin
-
- adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPluginWithGOE
-
- adams.gui.visualization.image.plugins.AbstractSelectedImagesFeatureGenerator
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
- Direct Known Subclasses:
BoofCVFeatureGenerator
,BufferedImageFeatureGenerator
public abstract class AbstractSelectedImagesFeatureGenerator extends AbstractSelectedImagesViewerPluginWithGOE
Ancestor for image feature generator plugins.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Row>
m_Collected
the collected data.protected String
m_FilterError
for storing filtering errors.-
Fields inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPluginWithGOE
m_Editor
-
Fields inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPlugin
m_SelectedPanels
-
Fields inherited from class adams.gui.plugin.AbstractToolPlugin
m_CanceledByUser, m_CurrentPanel, m_LastSetup
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectedImagesFeatureGenerator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canExecute(ImagePanel panel)
Checks whether the plugin can be executed given the specified image panel.protected SpreadSheet
collate()
Collates the data for the plot.protected abstract Row[]
generateFeatures(BufferedImage image)
Generats the features from the image.protected String
getDialogTitle()
Returns the title for the dialog.protected String
process(ImagePanel panel)
Processes the specified panel.protected String
processFinish()
Finishes up the processing.protected String
processInit()
Initializes the processing.-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPluginWithGOE
createConfigurationPanel, getCanChangeClassInDialog, getDefaultValue, getDialogSize, getEditorType, hasApprovalButton, hasCancelButton
-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractSelectedImagesViewerPlugin
createDialog, createListPanel, doExecute, getAllPanels, process
-
Methods inherited from class adams.gui.visualization.image.plugins.AbstractImageViewerPlugin
doLog
-
Methods inherited from class adams.gui.plugin.AbstractToolPlugin
createLogEntry, execute, getCanceledByUser, getCaption, getIcon, getIconName, getLastSetup, getMenu, hasLastSetup, log, setLastSetup
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
canExecute
public boolean canExecute(ImagePanel panel)
Checks whether the plugin can be executed given the specified image panel.
Panel must be non-null and must contain an image.- Overrides:
canExecute
in classAbstractSelectedImagesViewerPlugin
- Parameters:
panel
- the panel to use as basis for decision- Returns:
- true if plugin can be executed
-
getDialogTitle
protected String getDialogTitle()
Returns the title for the dialog.- Returns:
- the title
-
processInit
protected String processInit()
Initializes the processing.- Overrides:
processInit
in classAbstractSelectedImagesViewerPlugin
- Returns:
- null if successful, otherwise error message
-
generateFeatures
protected abstract Row[] generateFeatures(BufferedImage image)
Generats the features from the image.- Parameters:
image
- the image to process- Returns:
- the generated features
-
process
protected String process(ImagePanel panel)
Processes the specified panel.- Specified by:
process
in classAbstractSelectedImagesViewerPlugin
- Parameters:
panel
- the panel to process- Returns:
- null if successful, error message otherwise
-
collate
protected SpreadSheet collate() throws Exception
Collates the data for the plot.- Returns:
- the generated data
- Throws:
Exception
-
processFinish
protected String processFinish()
Finishes up the processing.- Overrides:
processFinish
in classAbstractSelectedImagesViewerPlugin
- Returns:
- null if successful, otherwise error message
-
-