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

Function ExportOpAverageBlur

python/mod_cvcuda/operators/OpAverageBlur.cpp:107–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105} // namespace
106
107void ExportOpAverageBlur(py::module &m)
108{
109 using namespace pybind11::literals;
110 py::options options;
111 options.disable_function_signatures();
112
113 const std::tuple<int, int> def_anchor{-1, -1};
114
115 m.def("averageblur", &AverageBlur, "src"_a, "kernel_size"_a, "kernel_anchor"_a = def_anchor,
116 "border"_a = NVCVBorderType::NVCV_BORDER_CONSTANT, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
117 cvcuda.averageblur(src: cvcuda.Tensor, kernel_size: Tuple[int, int], kernel_anchor: Tuple[int, int], border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor
118
119 Executes the AverageBlur operation on the given cuda stream.
120
121 See also:
122 Refer to the CV-CUDA C API reference for the AverageBlur operator
123 for more details and usage examples.
124
125 Args:
126 src (cvcuda.Tensor): Input tensor containing one or more images.
127 kernel_size (Tuple[int, int]): Specifies the size of the blur kernel.
128 kernel_anchor (Tuple[int, int]): Kernel anchor, use (-1,-1) to indicate kernel center.
129 border (cvcuda.Border, optional): Border mode to be used when accessing elements outside input image.
130 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
131
132 See also:
133 Refer to the CV-CUDA C API reference for the AverageBlur operator
134 for more details and usage examples.
135
136 Returns:
137 cvcuda.Tensor: The output tensor.
138
139 Caution:
140 Restrictions to several arguments may apply. Check the C
141 API references of the CV-CUDA operator.
142 )pbdoc");
143
144 m.def("averageblur_into", &AverageBlurInto, "dst"_a, "src"_a, "kernel_size"_a, "kernel_anchor"_a = def_anchor,
145 "border"_a = NVCVBorderType::NVCV_BORDER_CONSTANT, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
146 cvcuda.averageblur_into(dst: cvcuda.Tensor, src: cvcuda.Tensor, kernel_size: Tuple[int, int], kernel_anchor: Tuple[int, int], border: cvcuda.Border = cvcuda.Border.CONSTANT, stream: Optional[cvcuda.Stream] = None)
147
148 Executes the AverageBlur operation on the given cuda stream and writes the result into the 'dst' tensor.
149
150 See also:
151 Refer to the CV-CUDA C API reference for the AverageBlur operator
152 for more details and usage examples.
153
154 Args:
155 dst (cvcuda.Tensor): Output tensor to store the result of the operation.
156 src (cvcuda.Tensor): Input tensor containing one or more images.
157 kernel_size (Tuple[int, int]): Specifies the size of the blur kernel.
158 kernel_anchor (Tuple[int, int]): Kernel anchor, use (-1,-1) to indicate kernel center.
159 border (cvcuda.Border, optional): Border mode to be used when accessing elements outside input image.
160 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
161
162 Returns:
163 None
164

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected