MCPcopy Create free account
hub / github.com/creatale/node-dv / addParam_

Method addParam_

deps/opencv/modules/core/src/algorithm.cpp:1136–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134
1135
1136void AlgorithmInfo::addParam_(Algorithm& algo, const char* parameter, int argType,
1137 void* value, bool readOnly,
1138 Algorithm::Getter getter, Algorithm::Setter setter,
1139 const string& help)
1140{
1141 CV_Assert( argType == Param::INT || argType == Param::BOOLEAN ||
1142 argType == Param::REAL || argType == Param::STRING ||
1143 argType == Param::MAT || argType == Param::MAT_VECTOR ||
1144 argType == Param::ALGORITHM || argType == Param::SHORT
1145 || argType == Param::FLOAT || argType == Param::UNSIGNED_INT || argType == Param::UINT64
1146 || argType == Param::UCHAR);
1147 data->params.add(string(parameter), Param(argType, readOnly,
1148 (int)((size_t)value - (size_t)(void*)&algo),
1149 getter, setter, help));
1150}
1151
1152
1153void AlgorithmInfo::addParam(Algorithm& algo, const char* parameter,

Callers

nothing calls this directly

Calls 3

stringFunction · 0.85
ParamClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected