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

Function ExportOpHistogramEq

python/mod_cvcuda/operators/OpHistogramEq.cpp:97–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95} // namespace
96
97void ExportOpHistogramEq(py::module &m)
98{
99 using namespace pybind11::literals;
100 py::options options;
101 options.disable_function_signatures();
102
103 m.def("histogrameq", &HistogramEq, "src"_a, "dtype"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
104
105 cvcuda.histogrameq(src: cvcuda.Tensor, dtype: numpy.dtype, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor
106
107 Executes the histogram equalization operation on the given cuda stream.
108
109 See also:
110 Refer to the CV-CUDA C API reference for the Histogram Eq operator
111 for more details and usage examples.
112
113 Args:
114 src (cvcuda.Tensor): Input image batch containing one or more images.
115 dtype (numpy.dtype): The data type of the output.
116 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
117
118 Returns:
119 cvcuda.Tensor: The output image batch.
120
121 Caution:
122 Restrictions to several arguments may apply. Check the C
123 API references of the CV-CUDA operator.
124 )pbdoc");
125
126 m.def("histogrameq_into", &HistogramEqInto, "dst"_a, "src"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
127
128 cvcuda.histogrameq_into(dst: cvcuda.Tensor, src: cvcuda.Tensor, stream: Optional[cvcuda.Stream] = None)
129
130 Executes the histogram equalization operation on the given cuda stream.
131
132 See also:
133 Refer to the CV-CUDA C API reference for the Histogram Eq operator
134 for more details and usage examples.
135
136 Args:
137 dst (cvcuda.Tensor): Output image batch containing the result of the operation.
138 src (cvcuda.Tensor): Input image batch containing one or more images.
139 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
140
141 Returns:
142 None
143
144 Caution:
145 Restrictions to several arguments may apply. Check the C
146 API references of the CV-CUDA operator.
147 )pbdoc");
148
149 m.def("histogrameq", &HistogramEqVarShape, "src"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
150
151 cvcuda.histogrameq(src: cvcuda.ImageBatchVarShape, stream: Optional[cvcuda.Stream] = None) -> cvcuda.ImageBatchVarShape
152
153 Executes the histogram equalization operation on the given cuda stream.
154

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected