| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cstdint> | ||
| 4 | #include <string> | ||
| 5 | #include <tuple> | ||
| 6 | #include <vector> | ||
| 7 | |||
| 8 | #include "task/include/task.hpp" | ||
| 9 | |||
| 10 | namespace krykov_e_sobel_op { | ||
| 11 | |||
| 12 | struct Pixel { | ||
| 13 | uint8_t r; | ||
| 14 | uint8_t g; | ||
| 15 | uint8_t b; | ||
| 16 | |||
| 17 | bool operator==(const Pixel &other) const { | ||
| 18 | return r == other.r && g == other.g && b == other.b; | ||
| 19 | } | ||
| 20 | }; | ||
| 21 | |||
| 22 |
2/4✓ Branch 1 taken 36 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 36 times.
✗ Branch 4 not taken.
|
216 | struct Image { |
| 23 | int width = 0; | ||
| 24 | int height = 0; | ||
| 25 | std::vector<Pixel> data; | ||
| 26 | }; | ||
| 27 | |||
| 28 | using InType = Image; | ||
| 29 | using OutType = std::vector<int>; | ||
| 30 | using TestType = std::tuple<int, std::string>; | ||
| 31 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 32 | |||
| 33 | } // namespace krykov_e_sobel_op | ||
| 34 |