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