| 102 | } // namespace |
| 103 | |
| 104 | void ExportOpGaussian(py::module &m) |
| 105 | { |
| 106 | using namespace pybind11::literals; |
| 107 | py::options options; |
| 108 | options.disable_function_signatures(); |
| 109 | |
| 110 | m.def("gaussian", &Gaussian, "src"_a, "kernel_size"_a, "sigma"_a, "border"_a = NVCVBorderType::NVCV_BORDER_CONSTANT, |
| 111 | py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 112 | |
| 113 | cvcuda.gaussian(src: cvcuda.Tensor, kernel_size: Tuple[int, int], sigma: Tuple[double, double], border: border_mode: cvcuda.Border, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor |
| 114 | Executes the Gaussian operation on the given cuda stream. |
| 115 | |
| 116 | See also: |
| 117 | Refer to the CV-CUDA C API reference for the Gaussian operator |
| 118 | for more details and usage examples. |
| 119 | |
| 120 | Args: |
| 121 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 122 | kernel_size (Tuple[int, int]): Kernel width, height. |
| 123 | sigma (Tuple[double, double]): Gaussian kernel standard deviation in X,Y directions. |
| 124 | border (cvcuda.Border, optional): Border mode to be used when accessing elements outside input image. |
| 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("gaussian_into", &GaussianInto, "dst"_a, "src"_a, "kernel_size"_a, "sigma"_a, |
| 136 | "border"_a = NVCVBorderType::NVCV_BORDER_CONSTANT, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 137 | |
| 138 | cvcuda.gaussian_into(dst: cvcuda.Tensor, src: Tensor, kernel_size: Tuple[int, int], sigma: Tuple[double, double], border: border_mode: cvcuda.Border, stream: Optional[cvcuda.Stream] = None) |
| 139 | Executes the Gaussian operation on the given cuda stream. |
| 140 | |
| 141 | See also: |
| 142 | Refer to the CV-CUDA C API reference for the Gaussian operator |
| 143 | for more details and usage examples. |
| 144 | |
| 145 | Args: |
| 146 | dst (cvcuda.Tensor): Output tensor to store the result of the operation. |
| 147 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 148 | kernel_size (Tuple[int, int]): Kernel width, height. |
| 149 | sigma (Tuple[double, double]): Gaussian kernel standard deviation in X,Y directions. |
| 150 | border (cvcuda.Border, optional): Border mode to be used when accessing elements outside input image. |
| 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 | |
| 161 | m.def("gaussian", &VarShapeGaussian, "src"_a, "max_kernel_size"_a, "kernel_size"_a, "sigma"_a, |