Package adams.data.boofcv.features
Class MultiBoofCVFeatureGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.image.AbstractImageFeatureGenerator<BoofCVImageContainer>
-
- adams.data.boofcv.features.AbstractBoofCVFeatureGenerator
-
- adams.data.boofcv.features.MultiBoofCVFeatureGenerator
-
- All Implemented Interfaces:
CleanUpHandler,Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<AbstractImageFeatureGenerator>,SizeOfHandler,Serializable,Comparable
public class MultiBoofCVFeatureGenerator extends AbstractBoofCVFeatureGenerator
Applies multiple generators to the same image and merges the generate a feature vectors side-by-side. If one of the generators should create fewer a feature vectors, missing values are used in that case.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-converter <adams.data.featureconverter.AbstractFeatureConverter> (property: converter) The feature converter to use to produce the output data. default: adams.data.featureconverter.SpreadSheetFeatureConverter -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.SpreadSheet
-field <adams.data.report.Field> [-field ...] (property: fields) The fields to add to the output. default:
-notes <adams.core.base.BaseString> [-notes ...] (property: notes) The notes to add as attributes to the generated data, eg 'PROCESS INFORMATION' . default:
-sub-generator <AbstractBoofCVFeatureGenerator> [-sub-generator ...] (property: subGenerators) The feature generators to apply to the image. default:
-prefix <java.lang.String> (property: prefix) The prefix to use for disambiguating the attribute names of the datasets generated by the generators; use '#' for the 1-based index of the feature generator; example '#-' default:
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractBoofCVFeatureGenerator[]m_SubGeneratorsthe flatteners to use.protected HeaderDefinition[]m_SubHeadersthe sub-headers.-
Fields inherited from class adams.data.image.AbstractImageFeatureGenerator
m_Converter, m_Fields, m_Notes, m_Prefix
-
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 MultiBoofCVFeatureGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeaderDefinitioncreateHeader(BoofCVImageContainer img)Creates the header from a template image.protected StringcreatePrefix(int index)Generates the prefix for the specified flattener.voiddefineOptions()Adds options to the internal list of options.List<Object>[]generateRows(BoofCVImageContainer img)Performs the actual feature generation.AbstractBoofCVFeatureGenerator[]getSubGenerators()Returns the flatteners to use.StringglobalInfo()Returns a string describing the object.voidsetSubGenerators(AbstractBoofCVFeatureGenerator[] value)Sets the flatteners to use.StringsubGeneratorsTipText()Returns the tip text for this property.-
Methods inherited from class adams.data.image.AbstractImageFeatureGenerator
checkData, cleanUp, compareTo, converterTipText, destroy, equals, fieldsTipText, generate, getConverter, getDatasetFormat, getFields, getNotes, getPrefix, getRowFormat, notesTipText, postProcessHeader, postProcessRow, postProcessRows, prefixTipText, reset, setConverter, setFields, setNotes, setPrefix, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_SubGenerators
protected AbstractBoofCVFeatureGenerator[] m_SubGenerators
the flatteners to use.
-
m_SubHeaders
protected HeaderDefinition[] m_SubHeaders
the sub-headers.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractImageFeatureGenerator<BoofCVImageContainer>
-
setSubGenerators
public void setSubGenerators(AbstractBoofCVFeatureGenerator[] value)
Sets the flatteners to use.- Parameters:
value- the flatteners
-
getSubGenerators
public AbstractBoofCVFeatureGenerator[] getSubGenerators()
Returns the flatteners to use.- Returns:
- the flatteners
-
subGeneratorsTipText
public String subGeneratorsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
createPrefix
protected String createPrefix(int index)
Generates the prefix for the specified flattener.- Parameters:
index- the index of the flattener- Returns:
- the prefix
-
createHeader
public HeaderDefinition createHeader(BoofCVImageContainer img)
Creates the header from a template image.- Specified by:
createHeaderin classAbstractImageFeatureGenerator<BoofCVImageContainer>- Parameters:
img- the image to act as a template- Returns:
- the generated header
-
generateRows
public List<Object>[] generateRows(BoofCVImageContainer img)
Performs the actual feature generation.- Specified by:
generateRowsin classAbstractImageFeatureGenerator<BoofCVImageContainer>- Parameters:
img- the image to process- Returns:
- the generated features
-
-