Lines Matching refs:minVal
204 int randomInt(int minVal, int maxVal)
206 return rng.uniform(minVal, maxVal);
209 double randomDouble(double minVal, double maxVal)
211 return rng.uniform(minVal, maxVal);
214 double randomDoubleLog(double minVal, double maxVal)
216 double logMin = log((double)minVal + 1);
220 CV_Assert(v >= minVal && (v < maxVal || (v == minVal && v == maxVal)));
224 Size randomSize(int minVal, int maxVal)
227 return cv::Size((int)randomDoubleLog(minVal, maxVal), (int)randomDoubleLog(minVal, maxVal));
229 return cv::Size(randomInt(minVal, maxVal), randomInt(minVal, maxVal));
238 return cv::Size(randomInt(minVal, maxVal), randomInt(minVal, maxVal));
242 Scalar randomScalar(double minVal, double maxVal)
244 return Scalar(randomDouble(minVal, maxVal), randomDouble(minVal, maxVal), randomDouble(minVal, maxVal), randomDouble(minVal, maxVal));
247 Mat randomMat(Size size, int type, double minVal, double maxVal, bool useRoi = false)
250 return cvtest::randomMat(dataRng, size, type, minVal, maxVal, useRoi);
269 void randomSubMat(Mat& whole, Mat& subMat, const Size& roiSize, const Border& border, int type, double minVal, double maxVal)
272 whole = randomMat(wholeSize, type, minVal, maxVal, false);