CVB++ 14.0
regression_predictor_factory.hpp
1#pragma once
2
3#include "../_cexports/c_polimago.h"
4
5#include "../global.hpp"
6#include "predictor_factory_base.hpp"
7#include "regression_predictor.hpp"
8#include "regression_test_result.hpp"
9#include "../sample_database/sample_regression_image_list.hpp"
10
11#include <memory>
12
13namespace Cvb
14{
15CVB_BEGIN_INLINE_NS
16
18namespace Polimago
19{
21namespace Training
22{
23
25
28{
29public:
31
36 {}
37
39
40 RegressionPredictorFactory& operator=(const RegressionPredictorFactory&) = default;
41
42 virtual ~RegressionPredictorFactory () {};
43
44public:
46
52 {
53 PredictorFactoryBaseEx::UseSettingsFromPredictor (clf);
54 }
55
57
63 {
64 PredictorFactoryBaseEx::UseSettingsFromTestResult (res);
65 }
66
67#if 0
69
76 {
77 return Internal::DoResCallObjectOut<RegressionPredictor>([&](void* & res)
78 {
79 return CVB_CALL_CAPI(PMTrainClassifierFromSil(sil.Handle(), ..., CExports::CU_Regression, preproCode_, featureResolution_, lambda_, interpolation_ == InterpolationType::Linear, res);
80 });
81 }
82#endif
83};
84
87
88
89} /* namespace Training */
90
93
94} /* namespace Polimago */
95CVB_END_INLINE_NS
96} /* namespace Cvb */
Polimago Regression predictor.
Definition: regression_predictor.hpp:24
Regression test result object.
Definition: regression_test_result.hpp:27
Base class for classifier factory classes.
Definition: predictor_factory_base.hpp:178
Factory class for regression predictors.
Definition: regression_predictor_factory.hpp:28
void UseSettingsFromPredictor(const RegressionPredictor &clf)
Copy the predictor generation settings from a predictor.
Definition: regression_predictor_factory.hpp:51
void UseSettingsFromTestResult(const RegressionTestResult &res)
Copy the predictor generation settings from a test result.
Definition: regression_predictor_factory.hpp:62
RegressionPredictorFactory()
Constructor.
Definition: regression_predictor_factory.hpp:34
void * Handle() const noexcept
Classic API SIL handle.
Definition: sample_list.hpp:403
Classifier type that operates on images.
Definition: decl_regression_sil.hpp:182
@ Linear
Image data is (if necessary) extracted with linear interpolation.
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24