removed output file, and commented lines
This commit is contained in:
parent
f6387a241b
commit
bad4cc702c
BIN
img/out.png
BIN
img/out.png
Binary file not shown.
Before Width: | Height: | Size: 36 KiB |
@ -8,12 +8,6 @@ using randint = std::uniform_int_distribution<>;
|
|||||||
void newSquare(cv::Mat &t_process_img, std::mt19937 &t_gen, randint &t_dist) {
|
void newSquare(cv::Mat &t_process_img, std::mt19937 &t_gen, randint &t_dist) {
|
||||||
const int square_size = t_dist(t_gen);
|
const int square_size = t_dist(t_gen);
|
||||||
auto square_top_left = cv::Point{t_dist(t_gen), t_dist(t_gen)};
|
auto square_top_left = cv::Point{t_dist(t_gen), t_dist(t_gen)};
|
||||||
// if (auto const diff = t_process_img.size().width - (square_top_left.x +
|
|
||||||
// square_size);
|
|
||||||
// diff < 0) {
|
|
||||||
// square_top_left.x += diff; // += because diff is negative if we reach
|
|
||||||
// here
|
|
||||||
// }
|
|
||||||
draw_shape(t_process_img, square_top_left, square_size, random_color(t_gen),
|
draw_shape(t_process_img, square_top_left, square_size, random_color(t_gen),
|
||||||
Shapes::Square);
|
Shapes::Square);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user