_rng_uniform.diff
modules/core/include/opencv2/core/operations.hpp (working copy) | ||
---|---|---|
2275 | 2275 |
} |
2276 | 2276 |
inline int RNG::uniform(int a, int b) { return a == b ? a : next()%(b - a) + a; } |
2277 | 2277 |
inline float RNG::uniform(float a, float b) { return ((float)*this)*(b - a) + a; } |
2278 |
inline double RNG::uniform(double a, double b) { return ((float)*this)*(b - a) + a; }
|
|
2278 |
inline double RNG::uniform(double a, double b) { return ((double)*this)*(b - a) + a; }
|
|
2279 | 2279 | |
2280 | 2280 |
inline TermCriteria::TermCriteria() : type(0), maxCount(0), epsilon(0) {} |
2281 | 2281 |
inline TermCriteria::TermCriteria(int _type, int _maxCount, double _epsilon) |