|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrocca.RoccaClassifier
public class RoccaClassifier
Rocca/Weka interface for classifying a contour
| Field Summary | |
|---|---|
(package private) boolean |
fieldsSet
|
(package private) weka.classifiers.AbstractClassifier |
roccaClassifierModel
|
(package private) RoccaControl |
roccaControl
|
(package private) java.util.ArrayList<java.lang.String> |
spList
|
(package private) weka.core.Instances |
trainedDataset
|
| Constructor Summary | |
|---|---|
RoccaClassifier(RoccaProcess roccaProcess)
Create RoccaClassifier object for RoccaProcess |
|
| Method Summary | |
|---|---|
boolean |
areFieldsSet()
|
void |
classifyContour(RoccaContourDataBlock rcdb)
Classifies the passed contour |
weka.core.DenseInstance |
setAttributes(RoccaContourDataBlock rcdb)
Sets up the available datablock fields to match the classifier model |
void |
setFieldsSet(boolean fieldsSet)
|
boolean |
setUpClassifier()
Loads the Classifier model from the file specified in RoccaParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
RoccaControl roccaControl
weka.classifiers.AbstractClassifier roccaClassifierModel
weka.core.Instances trainedDataset
boolean fieldsSet
java.util.ArrayList<java.lang.String> spList
| Constructor Detail |
|---|
public RoccaClassifier(RoccaProcess roccaProcess)
roccaProcess - | Method Detail |
|---|
public void classifyContour(RoccaContourDataBlock rcdb)
Checks to make sure a classifier has been loaded, then runs the setAttributes method to match the passed contour to the parameter list expected by the classifier. Once the attribute vector has been created, the classifier is run and the results are saved to the datablock's classifiedAs field.
rcdb - RoccaContourDataBlock to be classifiedpublic boolean setUpClassifier()
public weka.core.DenseInstance setAttributes(RoccaContourDataBlock rcdb)
Compares the fields in the passed RoccaContourDataBlack to the fields required for the classifier. If any fields are missing, an error is displayed and the method returns false. If all the fields are available, an Instance is created matching the order of the datablock fields to the order of the classifier fields.
rcdb - RoccaContourDataBlock to be classified
Instance containing the values of the rcdb parameters that
match the classifier attributespublic boolean areFieldsSet()
public void setFieldsSet(boolean fieldsSet)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||