52 case Black: res =
"Black";
54 case Blue: res =
"Blue";
56 case Green: res =
"Green";
58 case Red: res =
"Red";
60 case Cyan: res =
"Cyan";
64 case Yellow: res =
"Yellow";
66 case White: res =
"White";
69 std :: cerr <<
"error: colorName(.), not defined color = " << color << std :: endl;
80 case Black: res =
"'k'";
82 case Blue: res =
"'b'";
84 case Green: res =
"'g'";
86 case Red: res =
"'r'";
88 case Cyan: res =
"'c'";
94 case White: res =
"'w'";
97 std :: cerr <<
"error: colorSymbol(), not defined color!!, " << color << std :: endl;
106 return Color( ( std :: rand() % 8 ) );
127 return ( std :: rand() % 360 );
137 ,
const Scalar &dx,
const Scalar &dy,
const bool &verbose =
true)
140 for (
Scalar x = xBegin; x <= xMax; x += dx ) {
141 for (
Scalar y = yBegin; y <= yMax; y += dy ) {
142 const std :: pair< Scalar, Scalar > p0(x, y);
143 blockCenter->push_back(p0);
145 std :: cout <<
"x = " << x <<
" , y = " << y <<
"\n";