CV_WRAP Mat getMat(const string& name) const;
CV_WRAP vector<Mat> getMatVector(const string& name) const;
CV_WRAP Ptr<Algorithm> getAlgorithm(const string& name) const;
- CV_WRAP float getFloat(const string& name) const;
- CV_WRAP uint64 getUInt64(const string& name) const;
void set(const string& name, int value);
void set(const string& name, double value);
void setMatVector(const char* name, const vector<Mat>& value);
void setAlgorithm(const char* name, const Ptr<Algorithm>& value);
template<typename _Tp> void setAlgorithm(const char* name, const Ptr<_Tp>& value);
- void setFloat(const char* name, float value);
- void setUInt64(const char* name, uint64 value);
CV_WRAP string paramHelp(const string& name) const;
int paramType(const char* name) const;
info()->set(this, parameter, ParamType<Algorithm>::type, &value);
}
-void Algorithm::setFloat(const char* parameter, float value)
-{
- info()->set(this, parameter, ParamType<float>::type, &value);
-}
-
-void Algorithm::setUInt64(const char* parameter, uint64 value)
-{
- info()->set(this, parameter, ParamType<uint64>::type, &value);
-}
-
return get<Algorithm>(parameter);
}
-float Algorithm::getFloat(const string& parameter) const
-{
- return get<float>(parameter);
-}
-uint64 Algorithm::getUInt64(const string& parameter) const
-{
- return get<uint64>(parameter);
-}
-
string Algorithm::paramHelp(const string& parameter) const
{
return info()->paramHelp(parameter.c_str());
nestedAlgo->write(fs);
}
else if( p.type == Param::FLOAT)
- cv::write(fs, pname, algo->getFloat(pname));
+ cv::write(fs, pname, algo->getDouble(pname));
else if( p.type == Param::UNSIGNED_INT)
cv::write(fs, pname, algo->getInt(pname));//TODO: implement cv::write(, , unsigned int)
else if( p.type == Param::UINT64)