SqueezeBrains SDK 1.18
|
Parameters Class that wraps the sb_t_par structure.
You must call the Dispose() method to free all the resources of the returned instance.
More...
#include <cs_par.h>
Public Member Functions | |
SbError | AddModel (String^ model_name) |
Adds the model to the parameter structure. More... | |
SbError | RemoveModel (String^ model_name) |
Removes the model from the parameter structure. More... | |
SbError | AddLevel (String^ model_name, float scale) |
Adds the level to the parameter structure. More... | |
SbError | RemoveLevel (String^ model_name, float scale) |
Removes the l-th level from the structure of the project parameters. More... | |
SbError | SetCollaboration (String^ model_name1, String^ model_name2, bool value) |
Sets collaboration between two models. More... | |
int | GetCollaboration (String^ model_name1, String^ model_name2) |
Gets collaboration between two models. More... | |
String | Format () |
Formats the parameters string. More... | |
Public Member Functions inherited from sb_cs::SbCommon | |
SbError | Error () |
Returns the error code of the last operation. If no error SbError.SB_ERR_NONE is returned. More... | |
String | ErrorMsg () |
Returns the error message of the last operation. More... | |
Static Public Member Functions | |
static String | FormatProjectType (SbProjectType value) |
Formats the project type More... | |
static String | FormatImageCircularityType (SbImageCircularityType value) |
Formats the image circularity type More... | |
static String | FormatFloatingPointPrecisionType (SbFloatingPointPrecisionType value) |
Formats the floating point precision More... | |
static String | FormatNetworkType (SbNetworkType value) |
Formats the Deep Learning Network type More... | |
static String | FormatTilingMode (SbTilingMode value) |
Formats the Deep Learning tiling mode More... | |
static String | FormatLossFnType (SbLossFnType value) |
Formats the Deep Learning Loss function type More... | |
static String | FormatImageBordersExtensionMode (SbImageBordersExtensionMode value) |
Formats the Deep Learning image borders extension mode More... | |
static String | FormatSvlParOptimizationMode (SbSvlParOptimizationMode value) |
Formats the Shallow Learning SVL optimization mode More... | |
static String | FormatPerturbationMode (SbPerturbationMode value) |
Formats the Deep Learning SVL image perturbation mode More... | |
static String | FormatPerturbationType (SbPerturbationType value) |
Formats the Deep Learning SVL image perturbation type More... | |
Static Public Member Functions inherited from sb_cs::SbCommon | |
static String | FormatError (SbError error) |
Returns the error message. More... | |
Data Fields | |
SbProjectType | project_type |
Project type More... | |
array< SbParModel^> | models |
Array of the models parameters More... | |
array< unsigned char, 2 > | collaborations |
Matrix of the models collaborations More... | |
int | num_threads |
Num threads to be used for the detection More... | |
SbBlobPar | blob_par |
Blob analysis parameters. Used only for Surface projects More... | |
SbDevicesPar | devices |
Devices used for inference. More... | |
SbInterpolationMode | resize_mode |
Interpolation mode used to resize the images. More... | |
SbFloatingPointPrecisionType | floating_point_precision |
Floating point precision used to run operations during detection. More... | |
SbRgba | color_opt |
Optional all models color. Used for painting More... | |
int | surface_blob_analysis |
Enable the surface blob analysis More... | |
SbParSl | sl |
Shallow Learning modules parameters More... | |
SbSvlPar | svl |
SVL parameters More... | |
Parameters Class that wraps the sb_t_par structure.
You must call the Dispose() method to free all the resources of the returned instance.
SbError sb_cs::SbPar::AddLevel | ( | String^ | model_name, |
float | scale | ||
) |
Adds the level to the parameter structure.
model_name | Model for which the level shoud be added. If NULL the level is added to all the models |
scale | Scale of the level to be added. |
SbError sb_cs::SbPar::AddModel | ( | String^ | model_name | ) |
Adds the model to the parameter structure.
model_name | Model name |
String sb_cs::SbPar::Format | ( | ) |
Formats the parameters string.
|
static |
Formats the floating point precision
value | Floating point precision type type |
|
static |
Formats the Deep Learning image borders extension mode
value | Image borders extension mode |
|
static |
Formats the image circularity type
value | Image circularity type |
|
static |
Formats the Deep Learning Loss function type
value | Loss function type |
|
static |
Formats the Deep Learning Network type
value | Network type |
|
static |
Formats the Deep Learning SVL image perturbation mode
value | Perturbation mode |
|
static |
Formats the Deep Learning SVL image perturbation type
value | Perturbation type |
|
static |
Formats the project type
value | Project type |
|
static |
Formats the Shallow Learning SVL optimization mode
value | Optimization type |
|
static |
Formats the Deep Learning tiling mode
value | Tiling mode type |
int sb_cs::SbPar::GetCollaboration | ( | String^ | model_name1, |
String^ | model_name2 | ||
) |
Gets collaboration between two models.
model_name1 | Name of the first model. |
model_name2 | Name of the second model. |
SbError sb_cs::SbPar::RemoveLevel | ( | String^ | model_name, |
float | scale | ||
) |
Removes the l-th level from the structure of the project parameters.
model_name | Model for which the level shoud be removed. If NULL the level is removed from all the models |
scale | Scale of the level to be removed |
SbError sb_cs::SbPar::RemoveModel | ( | String^ | model_name | ) |
Removes the model from the parameter structure.
model_name | Model name |
SbError sb_cs::SbPar::SetCollaboration | ( | String^ | model_name1, |
String^ | model_name2, | ||
bool | value | ||
) |
Sets collaboration between two models.
model_name1 | Name of the first model. |
model_name2 | Name of the second model. |
value | true: models are collaborative, false: models are not collaborative. |
SbBlobPar sb_cs::SbPar::blob_par |
Blob analysis parameters. Used only for Surface projects
array<unsigned char, 2> sb_cs::SbPar::collaborations |
Matrix of the models collaborations
SbRgba sb_cs::SbPar::color_opt |
Optional all models color. Used for painting
SbDevicesPar sb_cs::SbPar::devices |
SbFloatingPointPrecisionType sb_cs::SbPar::floating_point_precision |
Floating point precision used to run operations during detection.
array<SbParModel^> sb_cs::SbPar::models |
int sb_cs::SbPar::num_threads |
Num threads to be used for the detection
SbProjectType sb_cs::SbPar::project_type |
SbInterpolationMode sb_cs::SbPar::resize_mode |
Interpolation mode used to resize the images.
SbParSl sb_cs::SbPar::sl |
int sb_cs::SbPar::surface_blob_analysis |
Enable the surface blob analysis
SbSvlPar sb_cs::SbPar::svl |