| 687 | |
| 688 | template<typename DT> |
| 689 | void SetCvDataTo(TensorImageData &cvImg, DT data, Size2D region, uint8_t chFlags) |
| 690 | { |
| 691 | for (int x = 0; x < region.w; x++) |
| 692 | for (int y = 0; y < region.h; y++) |
| 693 | for (int c = 0; c < 4; c++) |
| 694 | if (((chFlags >> c) & 0x1) == 0x1) |
| 695 | *cvImg.item<DT>(x, y, c) = data; |
| 696 | |
| 697 | return; |
| 698 | } |
| 699 | |
| 700 | // Useful for debugging |
| 701 | template<typename VT, typename ST> |
nothing calls this directly
no outgoing calls
no test coverage detected