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

Function ExportOpFlip

python/mod_cvcuda/operators/OpFlip.cpp:97–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95} // namespace
96
97void ExportOpFlip(py::module &m)
98{
99 using namespace pybind11::literals;
100 py::options options;
101 options.disable_function_signatures();
102
103 m.def("flip", &Flip, "src"_a, "flipCode"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
104
105 cvcuda.flip(src: cvcuda.Tensor, flipCode: int, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor
106
107 Executes the Flip operation on the given cuda stream.
108
109 See also:
110 Refer to the CV-CUDA C API reference for the Flip operator
111 for more details and usage examples.
112
113 Args:
114 src (cvcuda.Tensor): Input tensor containing one or more images.
115 flipCode (int): Flag to specify how to flip the array; 0 means flipping
116 around the x-axis and positive value (for example, 1) means flipping
117 around y-axis. Negative value (for example, -1) means flipping around
118 both axes.
119 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
120
121 Returns:
122 cvcuda.Tensor: The output tensor.
123
124 Caution:
125 Restrictions to several arguments may apply. Check the C
126 API references of the CV-CUDA operator.
127 )pbdoc");
128
129 m.def("flip_into", &FlipInto, "dst"_a, "src"_a, "flipCode"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
130
131 cvcuda.flip_into(dst: cvcuda.Tensor, src: cvcuda.Tensor, flipCode: int, stream: Optional[cvcuda.Stream] = None)
132
133 Executes the Flip operation on the given cuda stream.
134
135 See also:
136 Refer to the CV-CUDA C API reference for the Flip operator
137 for more details and usage examples.
138
139 Args:
140 dst (cvcuda.Tensor): Output tensor to store the result of the operation.
141 src (cvcuda.Tensor): Input tensor containing one or more images.
142 flipCode (int): Flag to specify how to flip the array; 0 means flipping
143 around the x-axis and positive value (for example, 1) means flipping
144 around y-axis. Negative value (for example, -1) means flipping around
145 both axes.
146 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
147
148 Returns:
149 None
150
151 Caution:
152 Restrictions to several arguments may apply. Check the C
153 API references of the CV-CUDA operator.
154 )pbdoc");

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected