Package adams.data.objectfilter
Class AttachOverlappingMetaData
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.objectfilter.AbstractObjectFilter
-
- adams.data.objectfilter.AttachOverlappingMetaData
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,ObjectFilter
,FlowContextHandler
,Serializable
public class AttachOverlappingMetaData extends AbstractObjectFilter
Attaches meta-data from the stored report
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-storage-name <adams.flow.control.StorageName> (property: storageName) The name of the report in storage to obtain the meta-data from. default: storage
-finder <adams.data.objectfinder.ObjectFinder> (property: finder) The object finder for locating the objects of interest in the storage report. default: adams.data.objectfinder.AllFinder
-overlap-detection <adams.data.objectoverlap.ObjectOverlap> (property: overlapDetection) The algorithm to use for determining the overlapping objects. default: adams.data.objectoverlap.AreaRatio
-meta-data-key <adams.core.base.BaseString> [-meta-data-key ...] (property: metaDataKeys) The keys of the meta-data values to attach. default:
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectFinder
m_Finder
the object finder to use.protected BaseString[]
m_MetaDataKeys
the meta-data keys to attach.protected ObjectOverlap
m_OverlapDetection
the object overlap calculation to use.protected StorageName
m_StorageName
the storage item.-
Fields inherited from class adams.data.objectfilter.AbstractObjectFilter
m_FlowContext
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AttachOverlappingMetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
check(LocatedObjects objects)
Hook method for checking the object list before processing it.void
defineOptions()
Adds options to the internal list of options.protected LocatedObjects
doFilter(LocatedObjects objects)
Filters the image objects.String
finderTipText()
Returns the tip text for this property.ObjectFinder
getFinder()
Returns object finder for locating the objects in the storage report.BaseString[]
getMetaDataKeys()
Returns the keys of the meta-data values to attach.ObjectOverlap
getOverlapDetection()
Returns the algorithm for determining the overlapping objects.String
getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.StorageName
getStorageName()
Returns the name of the report in storage to obtain the meta-data from.String
globalInfo()
Returns a string describing the object.String
metaDataKeysTipText()
Returns the tip text for this property.String
overlapDetectionTipText()
Returns the tip text for this property.protected boolean
requiresFlowContext()
Returns whether flow context is actually required.void
setFinder(ObjectFinder value)
Sets the object finder for locating the objects in the storage report.void
setMetaDataKeys(BaseString[] value)
Sets the keys of the meta-data values to attach.void
setOverlapDetection(ObjectOverlap value)
Sets the algorithm for determining the overlapping objectsvoid
setStorageName(StorageName value)
Sets the name of the report in storage to obtain the meta-data from.String
storageNameTipText()
Returns the tip text for this property.-
Methods inherited from class adams.data.objectfilter.AbstractObjectFilter
filter, getFlowContext, setFlowContext
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_StorageName
protected StorageName m_StorageName
the storage item.
-
m_Finder
protected ObjectFinder m_Finder
the object finder to use.
-
m_OverlapDetection
protected ObjectOverlap m_OverlapDetection
the object overlap calculation to use.
-
m_MetaDataKeys
protected BaseString[] m_MetaDataKeys
the meta-data keys to attach.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
setStorageName
public void setStorageName(StorageName value)
Sets the name of the report in storage to obtain the meta-data from.- Parameters:
value
- the name
-
getStorageName
public StorageName getStorageName()
Returns the name of the report in storage to obtain the meta-data from.- Returns:
- the name
-
storageNameTipText
public String storageNameTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setFinder
public void setFinder(ObjectFinder value)
Sets the object finder for locating the objects in the storage report.- Parameters:
value
- the finder
-
getFinder
public ObjectFinder getFinder()
Returns object finder for locating the objects in the storage report.- Returns:
- the finder
-
finderTipText
public String finderTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setOverlapDetection
public void setOverlapDetection(ObjectOverlap value)
Sets the algorithm for determining the overlapping objects- Parameters:
value
- the algorithm
-
getOverlapDetection
public ObjectOverlap getOverlapDetection()
Returns the algorithm for determining the overlapping objects.- Returns:
- the algorithm
-
overlapDetectionTipText
public String overlapDetectionTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setMetaDataKeys
public void setMetaDataKeys(BaseString[] value)
Sets the keys of the meta-data values to attach.- Parameters:
value
- the keys
-
getMetaDataKeys
public BaseString[] getMetaDataKeys()
Returns the keys of the meta-data values to attach.- Returns:
- the keys
-
metaDataKeysTipText
public String metaDataKeysTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
requiresFlowContext
protected boolean requiresFlowContext()
Returns whether flow context is actually required.- Overrides:
requiresFlowContext
in classAbstractObjectFilter
- Returns:
- true if required
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceQuickInfoSupporter
- Overrides:
getQuickInfo
in classAbstractObjectFilter
- Returns:
- null if no info available, otherwise short string
-
check
protected String check(LocatedObjects objects)
Hook method for checking the object list before processing it.- Overrides:
check
in classAbstractObjectFilter
- Parameters:
objects
- the object list to check- Returns:
- null if successful, otherwise error message
-
doFilter
protected LocatedObjects doFilter(LocatedObjects objects)
Filters the image objects.- Specified by:
doFilter
in classAbstractObjectFilter
- Parameters:
objects
- the objects to filter- Returns:
- the updated object list
-
-