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

Function SetCvDataTo

tests/common/TensorDataUtils.hpp:689–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687
688template<typename DT>
689void 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
701template<typename VT, typename ST>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected