public class VisualClassificationOperator extends BaseOperator
ParametrizedOperation.ValueType
Constructor and Description |
---|
VisualClassificationOperator() |
VisualClassificationOperator(java.lang.String trainFile,
int classIndex) |
Modifier and Type | Method and Description |
---|---|
void |
apply(AreaTree atree)
Applies the operation to the given tree.
|
void |
apply(AreaTree atree,
Area root)
Applies the operation to the given subtree of the tree.
|
int |
getClassIndex() |
java.lang.String |
getDescription()
Obtains a longer description of the service.
|
FeatureExtractor |
getFeatures() |
java.lang.String |
getId()
Obtains a unique ID of the service
|
java.lang.String |
getName()
Obtains a descriptive name of the service that may be presented to the user.
|
java.lang.String[] |
getParamNames()
Obtains a list of available parameter names of the operation.
|
ParametrizedOperation.ValueType[] |
getParamTypes()
Obtains a list of available parameter value types.
|
java.lang.String |
getTrainFile() |
VisualClassifier |
getVisualClassifier() |
void |
setClassIndex(int classIndex) |
void |
setFeatures(FeatureExtractor features) |
void |
setTrainFile(java.lang.String trainFile) |
toString
getParam, getParamRange, setParam
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParam, getParamRange, setParam
public VisualClassificationOperator()
public VisualClassificationOperator(java.lang.String trainFile, int classIndex)
public java.lang.String getId()
Service
public java.lang.String getName()
Service
public java.lang.String getDescription()
Service
public java.lang.String[] getParamNames()
ParametrizedOperation
public ParametrizedOperation.ValueType[] getParamTypes()
ParametrizedOperation
public java.lang.String getTrainFile()
public void setTrainFile(java.lang.String trainFile)
public int getClassIndex()
public void setClassIndex(int classIndex)
public FeatureExtractor getFeatures()
public void setFeatures(FeatureExtractor features)
public VisualClassifier getVisualClassifier()
public void apply(AreaTree atree)
AreaTreeOperator
atree
- the area tree to be modified.public void apply(AreaTree atree, Area root)
AreaTreeOperator
atree
- the area tree to be modified.root
- the root node of the affected subtree.