Factory function to get an instance of derived classes of class
C2D2_lite
.
Prototype
std::unique_ptr<
C2D2_lite
> create(const std::string &model_name0, const std::string &model_name1, bool need_preprocess=true);
Parameters
The following table lists the create function arguments.
| Type | Member | Description |
|---|---|---|
| const std::string & | model_name0 | Model0 name |
| const std::string & | model_name1 | Model1 name |
| bool | need_preprocess | Normalize with mean/scale or not, default value is true. |
Returns
An instance ofC2D2_lite
class.