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

Function batchLike

python/mod_cvcuda/operators/OpColorTwist.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40inline ImageBatchVarShape batchLike(ImageBatchVarShape &src)
41{
42 ImageBatchVarShape dst = ImageBatchVarShape::Create(src.capacity());
43 for (int i = 0; i < src.numImages(); ++i)
44 {
45 dst.pushBack(Image::Create(src[i].size(), src[i].format()));
46 }
47 return dst;
48}
49
50template<typename Op, typename Src, typename Dst, typename Call>
51auto runGuard(Op &op, Src &src, Dst &dst, const Tensor &twist, std::optional<Stream> &pstream, Call &&call)

Callers 1

VarShapeColorTwistMatrixFunction · 0.70

Calls 5

capacityMethod · 0.45
numImagesMethod · 0.45
pushBackMethod · 0.45
sizeMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected