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

Function CompositeVarShapeInto

python/mod_cvcuda/operators/OpComposite.cpp:64–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64ImageBatchVarShape CompositeVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &foreground,
65 ImageBatchVarShape &background, ImageBatchVarShape &fgMask,
66 std::optional<Stream> pstream)
67{
68 if (!pstream)
69 {
70 pstream = Stream::Current();
71 }
72
73 auto composite = CreateOperator<cvcuda::Composite>();
74
75 ResourceGuard guard(*pstream);
76 guard.add(LockMode::LOCK_MODE_READ, {foreground, background, fgMask});
77 guard.add(LockMode::LOCK_MODE_WRITE, {output});
78 guard.add(LockMode::LOCK_MODE_NONE, {*composite});
79
80 composite->submit(pstream->cudaHandle(), foreground, background, fgMask, output);
81
82 return output;
83}
84
85ImageBatchVarShape CompositeVarShape(ImageBatchVarShape &foreground, ImageBatchVarShape &background,
86 ImageBatchVarShape &fgMask, std::optional<Stream> pstream)

Callers 1

CompositeVarShapeFunction · 0.85

Calls 3

cudaHandleMethod · 0.80
addMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected