| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cstddef> | ||
| 4 | #include <cstdint> | ||
| 5 | #include <string> | ||
| 6 | #include <tuple> | ||
| 7 | #include <vector> | ||
| 8 | |||
| 9 | #include "task/include/task.hpp" | ||
| 10 | |||
| 11 | namespace fatehov_k_gaussian { | ||
| 12 | |||
| 13 |
2/10✓ Branch 0 taken 36 times.
✗ Branch 1 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 36 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
|
216 | struct Image { |
| 14 | uint32_t width = 0; | ||
| 15 | uint32_t height = 0; | ||
| 16 | uint32_t channels = 0; | ||
| 17 | std::vector<uint8_t> data; | ||
| 18 | |||
| 19 | 36 | Image() = default; | |
| 20 |
1/2✓ Branch 1 taken 72 times.
✗ Branch 2 not taken.
|
72 | Image(uint32_t w, uint32_t h, uint32_t ch) : width(w), height(h), channels(ch) { |
| 21 |
1/4✓ Branch 1 taken 72 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
|
72 | data.resize(static_cast<size_t>(w) * h * ch, 0); |
| 22 | 72 | } | |
| 23 | }; | ||
| 24 | |||
| 25 | 72 | struct InputData { | |
| 26 | Image image; | ||
| 27 | float sigma = 1.0F; | ||
| 28 | }; | ||
| 29 | |||
| 30 | using InType = InputData; | ||
| 31 | using OutType = Image; | ||
| 32 | using TestType = std::tuple<int, std::string>; | ||
| 33 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 34 | |||
| 35 | } // namespace fatehov_k_gaussian | ||
| 36 |