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

Function ExportOpComposite

python/mod_cvcuda/operators/OpComposite.cpp:103–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101} // namespace
102
103void ExportOpComposite(py::module &m)
104{
105 using namespace pybind11::literals;
106 py::options options;
107 options.disable_function_signatures();
108
109 m.def("composite", &Composite, "foreground"_a, "background"_a, "fgmask"_a, "outchannels"_a, py::kw_only(),
110 "stream"_a = nullptr, R"pbdoc(
111
112 cvcuda.composite(foreground: cvcuda.Tensor, background: cvcuda.Tensor, fgmask: cvcuda.Tensor, outchannels: int, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor
113
114 Executes the Composite operation on the given cuda stream.
115
116 See also:
117 Refer to the CV-CUDA C API reference for the Composite operator
118 for more details and usage examples.
119
120 Args:
121 foreground (cvcuda.Tensor): Input tensor containing one or more foreground images. Each image is BGR (3-channel) 8-bit.
122 background (cvcuda.Tensor): Input tensor containing one or more background images. Each image is BGR (3-channel) 8-bit.
123 fgmask (cvcuda.Tensor): Input foreground mask tensor. Each mask image is grayscale 8-bit
124 outchannels (int): Specifies 3 channel for RGB and 4 channel for BGRA.
125 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
126
127 Returns:
128 cvcuda.Tensor: The output tensor.
129
130 Caution:
131 Restrictions to several arguments may apply. Check the C
132 API references of the CV-CUDA operator.
133 )pbdoc");
134
135 m.def("composite_into", &CompositeInto, "dst"_a, "foreground"_a, "background"_a, "fgmask"_a, py::kw_only(),
136 "stream"_a = nullptr, R"pbdoc(
137
138 cvcuda.composite_into(dst: cvcuda.Tensor, foreground: cvcuda.Tensor, background: cvcuda.Tensor, fgmask: cvcuda.Tensor, outchannels: int, stream: Optional[cvcuda.Stream] = None)
139
140 Executes the Composite operation on the given cuda stream.
141
142 See also:
143 Refer to the CV-CUDA C API reference for the Composite operator
144 for more details and usage examples.
145
146 Args:
147 dst (cvcuda.Tensor): Output tensor to store the result of the operation.
148 foreground (cvcuda.Tensor): Input tensor containing one or more foreground images. Each image is BGR (3-channel) 8-bit.
149 background (cvcuda.Tensor): Input tensor containing one or more background images. Each image is BGR (3-channel) 8-bit.
150 fgmask (cvcuda.Tensor): Input foreground mask tensor. Each mask image is grayscale 8-bit.
151 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
152
153 Returns:
154 None
155
156 Caution:
157 Restrictions to several arguments may apply. Check the C
158 API references of the CV-CUDA operator.
159 )pbdoc");
160

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected