| 12 | |
| 13 | template<typename T> |
| 14 | std::vector<T> get_pixel_vector(const T * data, int height, int width, int channel, int h, int w) |
| 15 | { |
| 16 | std::vector<T> pixel_vector(channel); |
| 17 | for (int c = 0; c < channel; c++){ |
| 18 | pixel_vector[c]= data[h * width * channel + w * channel + c]; |
| 19 | } |
| 20 | return pixel_vector; |
| 21 | } |
| 22 | |
| 23 | template<typename T> |
| 24 | void set_pixel(T * data, int height, int width, int h, int w, T value) |
no outgoing calls
no test coverage detected