| 85 | } // namespace |
| 86 | |
| 87 | void ExportOpCustomCrop(py::module &m) |
| 88 | { |
| 89 | using namespace pybind11::literals; |
| 90 | |
| 91 | m.def("customcrop", &CustomCrop, "src"_a, "rect"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 92 | |
| 93 | Executes the Custom Crop operation on the given cuda stream. |
| 94 | |
| 95 | See also: |
| 96 | Refer to the CV-CUDA C API reference for the Custom Crop operator |
| 97 | for more details and usage examples. |
| 98 | |
| 99 | Args: |
| 100 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 101 | rect (cvcuda.RectI): Crop rectangle in reference to the input tensor. |
| 102 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 103 | |
| 104 | Returns: |
| 105 | cvcuda.Tensor: The output tensor. |
| 106 | |
| 107 | Caution: |
| 108 | Restrictions to several arguments may apply. Check the C |
| 109 | API references of the CV-CUDA operator. |
| 110 | )pbdoc"); |
| 111 | |
| 112 | m.def("customcrop_into", &CustomCropInto, "dst"_a, "src"_a, "rect"_a, py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 113 | |
| 114 | Executes the Custom Crop operation on the given cuda stream. |
| 115 | |
| 116 | See also: |
| 117 | Refer to the CV-CUDA C API reference for the Custom Crop operator |
| 118 | for more details and usage examples. |
| 119 | |
| 120 | Args: |
| 121 | dst (cvcuda.Tensor): Output tensor to store the result of the operation. |
| 122 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 123 | rect (cvcuda.RectI): Crop rectangle in reference to the input tensor. |
| 124 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 125 | |
| 126 | Returns: |
| 127 | None |
| 128 | |
| 129 | Caution: |
| 130 | Restrictions to several arguments may apply. Check the C |
| 131 | API references of the CV-CUDA operator. |
| 132 | )pbdoc"); |
| 133 | } |
| 134 | |
| 135 | } // namespace cvcudapy |