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

Function ExportOpRotate

python/mod_cvcuda/operators/OpRotate.cpp:102–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100} // namespace
101
102void ExportOpRotate(py::module &m)
103{
104 using namespace pybind11::literals;
105
106 py::options options;
107 options.disable_function_signatures();
108
109 m.def("rotate", &Rotate, "src"_a, "angle_deg"_a, "shift"_a, "interpolation"_a, py::kw_only(), "stream"_a = nullptr,
110 R"pbdoc(
111
112 cvcuda.rotate(src: cvcuda.Tensor, angle_deg: float, shift: Tuple[float, float], interpolation: cvcuda.Interp, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor
113
114 Executes the Rotate operation on the given cuda stream.
115
116 See also:
117 Refer to the CV-CUDA C API reference for the Rotate operator
118 for more details and usage examples.
119
120 Args:
121 src (cvcuda.Tensor): Input tensor containing one or more images.
122 angle_deg (float): Angle used for rotation in degrees.
123 shift (Tuple[float, float]): Value of shift in {x, y} directions to move the center at the same coord after rotation.
124 interpolation (cvcuda.Interp): Interpolation type used for transform.
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("rotate_into", &RotateInto, "dst"_a, "src"_a, "angle_deg"_a, "shift"_a, "interpolation"_a, py::kw_only(),
136 "stream"_a = nullptr, R"pbdoc(
137
138 cvcuda.rotate_into(dst: cvcuda.Tensor, src: cvcuda.Tensor, angle_deg: float, shift: Tuple[float, float], interpolation: cvcuda.Interp, stream: Optional[cvcuda.Stream] = None)
139
140 Executes the Rotate operation on the given cuda stream.
141
142 See also:
143 Refer to the CV-CUDA C API reference for the Rotate operator
144 for more details and usage examples.
145
146 Args:
147 dst (cvcuda.Tensor): Output tensor to store the result of the operation.
148 src (cvcuda.Tensor): Input tensor containing one or more images.
149 angle_deg (float): Angle used for rotation in degrees.
150 shift (Tuple[float, float]): Value of shift in {x, y} directions to move the center at the same coord after rotation.
151 interpolation (cvcuda.Interp): Interpolation type used for transform.
152 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
153
154 Returns:
155 None
156
157 Caution:
158 Restrictions to several arguments may apply. Check the C
159 API references of the CV-CUDA operator.

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected