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

Function cvRandArr

deps/opencv/modules/core/src/rand.cpp:895–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

893}
894
895CV_IMPL void
896cvRandArr( CvRNG* _rng, CvArr* arr, int disttype, CvScalar param1, CvScalar param2 )
897{
898 cv::Mat mat = cv::cvarrToMat(arr);
899 // !!! this will only work for current 64-bit MWC RNG !!!
900 cv::RNG& rng = _rng ? (cv::RNG&)*_rng : cv::theRNG();
901 rng.fill(mat, disttype == CV_RAND_NORMAL ?
902 cv::RNG::NORMAL : cv::RNG::UNIFORM, cv::Scalar(param1), cv::Scalar(param2) );
903}
904
905CV_IMPL void cvRandShuffle( CvArr* arr, CvRNG* _rng, double iter_factor )
906{

Callers

nothing calls this directly

Calls 2

cvarrToMatFunction · 0.85
fillMethod · 0.45

Tested by

no test coverage detected