| 57 | } // namespace |
| 58 | |
| 59 | void ExportOpAdvCvtColor(py::module &m) |
| 60 | { |
| 61 | using namespace pybind11::literals; |
| 62 | m.def("advcvtcolor", &AdvCvtColor, "src"_a, "code"_a, "spec"_a, py::kw_only(), "stream"_a = nullptr, |
| 63 | R"pbdoc( |
| 64 | |
| 65 | Executes the Adv Cvt Color operation on the given cuda stream. |
| 66 | |
| 67 | See also: |
| 68 | Refer to the CV-CUDA C API reference for the Adv Cvt Color operator |
| 69 | for more details and usage examples. |
| 70 | |
| 71 | Args: |
| 72 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 73 | code (cvcuda.ColorConversion): Code describing the desired color conversion. |
| 74 | spec (cvcuda.ColorSpec): Color specification for the conversion. |
| 75 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 76 | |
| 77 | Returns: |
| 78 | cvcuda.Tensor: The output color converted image. |
| 79 | |
| 80 | Caution: |
| 81 | Restrictions to several arguments may apply. Check the C |
| 82 | API references of the CV-CUDA operator. |
| 83 | )pbdoc"); |
| 84 | |
| 85 | m.def("advcvtcolor_into", &AdvCvtColorInto, "dst"_a, "src"_a, "code"_a, "spec"_a, py::kw_only(), |
| 86 | "stream"_a = nullptr, R"pbdoc( |
| 87 | |
| 88 | Executes the Adv Cvt Color operation on the given cuda stream. |
| 89 | |
| 90 | See also: |
| 91 | Refer to the CV-CUDA C API reference for the Adv Cvt Color operator |
| 92 | for more details and usage examples. |
| 93 | |
| 94 | Args: |
| 95 | dst (cvcuda.Tensor): Output tensor to store the result of the operation. |
| 96 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 97 | code (cvcuda.ColorConversion): Code describing the desired color conversion. |
| 98 | spec (cvcuda.ColorSpec): Color specification for the conversion. |
| 99 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 100 | |
| 101 | Returns: |
| 102 | None |
| 103 | |
| 104 | Caution: |
| 105 | Restrictions to several arguments may apply. Check the C |
| 106 | API references of the CV-CUDA operator. |
| 107 | )pbdoc"); |
| 108 | } |
| 109 | |
| 110 | } // namespace cvcudapy |