void
SupportVectorMachine::load(FILE *fp)
{
    _deinit();
    fscanf(fp, "%d %d %d", &_fVecShape.width, &_fVecShape.height, &_fVecShape.nBands);
    fscanf(fp, "%lf %lf", &_roiSize.width, &_roiSize.height);
    _model = svm_load_model_fp(fp);
    if(_model == NULL) {
        throw CError("Failed to load SVM model");
    }
}
SupportVectorMachine::~SupportVectorMachine()
{
    _deinit();
}
Exemple #3
0
 UnderWaterBubble::~UnderWaterBubble()
 {
     _deinit();
 }
Exemple #4
0
EXTERN_UT void
wsys_deinit(void) {
    _deinit();
}
Exemple #5
0
ALSubsystem::~ALSubsystem()
{
  _deinit();
}