标签: c++ opencv
哪个头文件需要在OpenCv中使用randomColor命令? 我用, Opencv3.0.0 Visualstudio2013
答案 0 :(得分:0)
它不在标题内。根据文档,实施是:
static Scalar randomColor( RNG& rng ) { int icolor = (unsigned) rng; return Scalar( icolor&255, (icolor>>8)&255, (icolor>>16)&255 ); }