| 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 balchunayte_z_sobel { | ||
| 11 | |||
| 12 | struct Pixel { | ||
| 13 | uint8_t r = 0; | ||
| 14 | uint8_t g = 0; | ||
| 15 | uint8_t b = 0; | ||
| 16 | }; | ||
| 17 | |||
| 18 |
2/4✓ Branch 1 taken 36 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 36 times.
✗ Branch 4 not taken.
|
180 | struct Image { |
| 19 | int width = 0; | ||
| 20 | int height = 0; | ||
| 21 | std::vector<Pixel> data; // size = width*height | ||
| 22 | }; | ||
| 23 | |||
| 24 | using InType = Image; | ||
| 25 | using OutType = std::vector<int>; // Sobel magnitude per pixel (abs(gx)+abs(gy)) | ||
| 26 | using TestType = std::tuple<int, std::string>; | ||
| 27 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 28 | |||
| 29 | } // namespace balchunayte_z_sobel | ||
| 30 |