Package adams.data.boofcv.features
Class FilteredBoofCVFeatureGenerator
- 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.FilteredBoofCVFeatureGenerator
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<AbstractImageFeatureGenerator>
,SizeOfHandler
,Serializable
,Comparable
public class FilteredBoofCVFeatureGenerator extends AbstractBoofCVFeatureGenerator
Applies the filter (an image transformer) to the image first before generating the features from the transformed images.
-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.SpreadSheet -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet
-prefix <java.lang.String> (property: prefix) The (optional) prefix to use for the feature names. default:
-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:
-filter <adams.data.boofcv.transformer.AbstractBoofCVTransformer> (property: filter) The filter to use. default: adams.data.boofcv.transformer.PassThrough
-generator <adams.data.boofcv.features.AbstractBoofCVFeatureGenerator> (property: generator) The generator to use on the filtered data. default: adams.data.boofcv.features.Pixels -converter \"adams.data.featureconverter.SpreadSheet -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet\"
- Version:
- $Revision: 9196 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz), Dale (dale at cs dot waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractBoofCVTransformer
m_Filter
the filter to use.protected AbstractBoofCVFeatureGenerator
m_Generator
the base feature generator.-
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 FilteredBoofCVFeatureGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeaderDefinition
createHeader(BoofCVImageContainer img)
Creates the header from a template image.void
defineOptions()
Adds options to the internal list of options.String
filterTipText()
Returns the tip text for this property.List<Object>[]
generateRows(BoofCVImageContainer img)
Performs the actual feature generation.String
generatorTipText()
Returns the tip text for this property.AbstractBoofCVTransformer
getFilter()
Returns the filter in use.AbstractBoofCVFeatureGenerator
getGenerator()
Returns the feature generator to use on the filtered data.String
globalInfo()
Returns a string describing the object.void
setFilter(AbstractBoofCVTransformer value)
Sets the filter to use.void
setGenerator(AbstractBoofCVFeatureGenerator value)
Sets the feature generator to use on the filtered data.-
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_Filter
protected AbstractBoofCVTransformer m_Filter
the filter to use.
-
m_Generator
protected AbstractBoofCVFeatureGenerator m_Generator
the base feature generator.
-
-
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 classAbstractImageFeatureGenerator<BoofCVImageContainer>
-
setFilter
public void setFilter(AbstractBoofCVTransformer value)
Sets the filter to use.- Parameters:
value
- the filter to use
-
getFilter
public AbstractBoofCVTransformer getFilter()
Returns the filter in use.- Returns:
- the filter in use
-
filterTipText
public String filterTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setGenerator
public void setGenerator(AbstractBoofCVFeatureGenerator value)
Sets the feature generator to use on the filtered data.- Parameters:
value
- the generator to use
-
getGenerator
public AbstractBoofCVFeatureGenerator getGenerator()
Returns the feature generator to use on the filtered data.- Returns:
- the generator in use
-
generatorTipText
public String generatorTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
createHeader
public HeaderDefinition createHeader(BoofCVImageContainer img)
Creates the header from a template image.- Specified by:
createHeader
in 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:
generateRows
in classAbstractImageFeatureGenerator<BoofCVImageContainer>
- Parameters:
img
- the image to process- Returns:
- the generated features
-
-