| 187 | } |
| 188 | |
| 189 | void 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 |
no test coverage detected