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(); }
UnderWaterBubble::~UnderWaterBubble() { _deinit(); }
EXTERN_UT void wsys_deinit(void) { _deinit(); }
ALSubsystem::~ALSubsystem() { _deinit(); }