MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / get_pixel_vector

Function get_pixel_vector

maxflow_python/util.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13template<typename T>
14std::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
23template<typename T>
24void set_pixel(T * data, int height, int width, int h, int w, T value)

Callers 2

maxflow_inferenceFunction · 0.85
maxflow3d_inferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected