| 69 | } // namespace |
| 70 | |
| 71 | void ExportOpGammaContrast(py::module &m) |
| 72 | { |
| 73 | using namespace pybind11::literals; |
| 74 | |
| 75 | m.def("gamma_contrast", &VarShapeGammaContrast, "src"_a, "gamma"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 76 | |
| 77 | Executes the Gamma Contrast operation on the given cuda stream. |
| 78 | |
| 79 | See also: |
| 80 | Refer to the CV-CUDA C API reference for the Gamma Contrast operator |
| 81 | for more details and usage examples. |
| 82 | |
| 83 | Args: |
| 84 | src (cvcuda.ImageBatchVarShape): Input tensor containing one or more images. |
| 85 | gamma (cvcuda.Tensor): 1D Tensor with the the gamma value for each image / image channel. |
| 86 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 87 | |
| 88 | Returns: |
| 89 | cvcuda.ImageBatchVarShape: The output image batch. |
| 90 | |
| 91 | Caution: |
| 92 | Restrictions to several arguments may apply. Check the C |
| 93 | API references of the CV-CUDA operator. |
| 94 | )pbdoc"); |
| 95 | |
| 96 | m.def("gamma_contrast_into", &VarShapeGammaContrastInto, "dst"_a, "src"_a, "gamma"_a, py::kw_only(), |
| 97 | "stream"_a = nullptr, R"pbdoc( |
| 98 | |
| 99 | Executes the Gamma Contrast operation on the given cuda stream. |
| 100 | |
| 101 | See also: |
| 102 | Refer to the CV-CUDA C API reference for the Gamma Contrast operator |
| 103 | for more details and usage examples. |
| 104 | |
| 105 | Args: |
| 106 | dst (cvcuda.ImageBatchVarShape): Output tensor to store the result of the operation. |
| 107 | src (cvcuda.ImageBatchVarShape): Input tensor containing one or more images. |
| 108 | gamma (cvcuda.Tensor): 1D Tensor with the the gamma value for each image / image channel. |
| 109 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 110 | |
| 111 | Returns: |
| 112 | None |
| 113 | |
| 114 | Caution: |
| 115 | Restrictions to several arguments may apply. Check the C |
| 116 | API references of the CV-CUDA operator. |
| 117 | )pbdoc"); |
| 118 | } |
| 119 | |
| 120 | } // namespace cvcudapy |