MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / Add

Method Add

tests/cvcuda/system/TestOpInpaint.cpp:114–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 bool Add(const vector<uint8_t> &f, int height, int width)
115 {
116 int i, j;
117 for (i = 0; i < height; i++)
118 {
119 for (j = 0; j < width; j++)
120 {
121 if (f[i * width + j] != 0)
122 {
123 if (!Push(i, j, 0))
124 return false;
125 }
126 }
127 }
128 return true;
129 }
130
131 bool Push(int i, int j, float T)
132 {

Callers 1

InpaintFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected