MCPcopy Create free account
hub / github.com/alibaba/MNN / draw

Method draw

source/cv/ImageProcess.cpp:189–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void ImageProcess::draw(uint8_t* img, int w, int h, int c, const int* regions, int num, const uint8_t* color) {
190 std::vector<int32_t> tmpReg(3 * num);
191 ::memcpy(tmpReg.data(), (void*)regions, 4 * 3 * num);
192 double tmpBuf[4];
193 ::memcpy(tmpBuf, color, 4 * sizeof(double));
194 mInside->proc->resizeFunc(c, w, h, c, w, h);
195 mInside->proc->draw(img, w, h, c, tmpReg.data(), num, (uint8_t*)tmpBuf);
196}
197} // namespace CV
198} // namespace MNN

Callers 2

doDrawFunction · 0.45
CPUImageProcessMethod · 0.45

Calls 2

resizeFuncMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected