| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cstdint> | ||
| 4 | #include <vector> | ||
| 5 | |||
| 6 | #include "task/include/task.hpp" | ||
| 7 | |||
| 8 | namespace paramonov_v_bin_img_conv_hul_omp { | ||
| 9 | |||
| 10 | struct PixelPoint { | ||
| 11 | int row{0}; | ||
| 12 | int col{0}; | ||
| 13 | |||
| 14 | PixelPoint() = default; | ||
| 15 | 296 | PixelPoint(int r, int c) : row(r), col(c) {} | |
| 16 | |||
| 17 | bool operator==(const PixelPoint &other) const { | ||
| 18 | return row == other.row && col == other.col; | ||
| 19 | } | ||
| 20 | |||
| 21 | bool operator<(const PixelPoint &other) const { | ||
| 22 | return (row == other.row) ? col < other.col : row < other.row; | ||
| 23 | } | ||
| 24 | }; | ||
| 25 | |||
| 26 |
4/5✓ Branch 1 taken 448 times.
✓ Branch 2 taken 32 times.
✓ Branch 4 taken 32 times.
✓ Branch 5 taken 2048 times.
✗ Branch 6 not taken.
|
2688 | struct GrayImage { |
| 27 | std::vector<uint8_t> pixels; | ||
| 28 | int rows = 0; | ||
| 29 | int cols = 0; | ||
| 30 | }; | ||
| 31 | |||
| 32 | using InputType = GrayImage; | ||
| 33 | using OutputType = std::vector<std::vector<PixelPoint>>; | ||
| 34 | using BaseTask = ppc::task::Task<InputType, OutputType>; | ||
| 35 | |||
| 36 | } // namespace paramonov_v_bin_img_conv_hul_omp | ||
| 37 |