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

Function Composite

python/mod_cvcuda/operators/OpComposite.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54Tensor Composite(Tensor &foreground, Tensor &background, Tensor &fgMask, int outChannels, std::optional<Stream> pstream)
55{
56 Shape out_shape = CreateShape(foreground.shape());
57 out_shape[out_shape.size() - 1] = outChannels;
58
59 Tensor output = Tensor::Create(out_shape, foreground.dtype(), foreground.layout());
60
61 return CompositeInto(output, foreground, background, fgMask, pstream);
62}
63
64ImageBatchVarShape CompositeVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &foreground,
65 ImageBatchVarShape &background, ImageBatchVarShape &fgMask,

Callers

nothing calls this directly

Calls 6

CreateShapeFunction · 0.85
CompositeIntoFunction · 0.85
shapeMethod · 0.45
sizeMethod · 0.45
dtypeMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected