| 256 | } // namespace |
| 257 | |
| 258 | void ExportOpPillowResize(py::module &m) |
| 259 | { |
| 260 | using namespace pybind11::literals; |
| 261 | |
| 262 | py::options options; |
| 263 | options.disable_function_signatures(); |
| 264 | |
| 265 | m.def("pillowresize", &PillowResize, "src"_a, "shape"_a, "format"_a, "interp"_a = NVCV_INTERP_LINEAR, py::kw_only(), |
| 266 | "stream"_a = nullptr, R"pbdoc( |
| 267 | |
| 268 | cvcuda.pillowresize(src: cvcuda.Tensor, shape:Shape, format:ImageFormat, interp: Interp = cvcuda.Interp.LINEAR, stream: Optional[cvcuda.Stream] = None) -> cvcuda.Tensor |
| 269 | |
| 270 | Executes the Pillow Resize operation on the given cuda stream. |
| 271 | |
| 272 | See also: |
| 273 | Refer to the CV-CUDA C API reference for the Pillow Resize operator |
| 274 | for more details and usage examples. |
| 275 | |
| 276 | Args: |
| 277 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 278 | shape (tuple): Shape of the output image. |
| 279 | format (cvcuda.Format): Format of the input and output images. |
| 280 | interp (cvcuda.Interp, optional): Interpolation type used for transform. |
| 281 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 282 | |
| 283 | Returns: |
| 284 | cvcuda.Tensor: The output tensor. |
| 285 | |
| 286 | Caution: |
| 287 | Restrictions to several arguments may apply. Check the C |
| 288 | API references of the CV-CUDA operator. |
| 289 | )pbdoc"); |
| 290 | |
| 291 | m.def("pillowresize_into", &PillowResizeInto, "dst"_a, "src"_a, "format"_a, "interp"_a = NVCV_INTERP_LINEAR, |
| 292 | py::kw_only(), "stream"_a = nullptr, R"pbdoc( |
| 293 | |
| 294 | cvcuda.pillowresize_into(dst: cvcuda.Tensor, src: cvcuda.Tensor, shape: Tuple[int], format: cvcuda.Format, interp: Interp = cvcuda.Interp.LINEAR, stream: Optional[cvcuda.Stream] = None) |
| 295 | |
| 296 | Executes the Pillow Resize operation on the given cuda stream. |
| 297 | |
| 298 | See also: |
| 299 | Refer to the CV-CUDA C API reference for the Pillow Resize operator |
| 300 | for more details and usage examples. |
| 301 | |
| 302 | Args: |
| 303 | dst (cvcuda.Tensor): Output tensor to store the result of the operation. |
| 304 | src (cvcuda.Tensor): Input tensor containing one or more images. |
| 305 | shape (tuple): Shape of the output image. |
| 306 | format (cvcuda.Format): Format of the input and output images. |
| 307 | interp (cvcuda.Interp, optional): Interpolation type used for transform. |
| 308 | stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation. |
| 309 | |
| 310 | Returns: |
| 311 | None |
| 312 | |
| 313 | Caution: |
| 314 | Restrictions to several arguments may apply. Check the C |
| 315 | API references of the CV-CUDA operator. |