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

Function ExportOpPadAndStack

python/mod_cvcuda/operators/OpPadAndStack.cpp:66–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64} // namespace
65
66void ExportOpPadAndStack(py::module &m)
67{
68 using namespace pybind11::literals;
69
70 m.def("padandstack", &PadAndStack, "src"_a, "top"_a, "left"_a, "border"_a = NVCV_BORDER_CONSTANT, "bvalue"_a = 0,
71 py::kw_only(), "stream"_a = nullptr, R"pbdoc(
72
73 Executes the Pad and Stack operation on the given cuda stream.
74
75 See also:
76 Refer to the CV-CUDA C API reference for the Pad and Stack operator
77 for more details and usage examples.
78
79 Args:
80 src (cvcuda.ImageBatchVarShape): input image batch containing one or more images.
81 top (cvcuda.Tensor): Top tensor to store amount of top padding per batch input image.
82 left (cvcuda.Tensor): Left tensor to store amount of left padding per batch input image.
83 border (cvcuda.Border): Border mode to be used when accessing elements outside input image.
84 bvalue (float): Border value to be used for constant border mode.
85 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
86
87 Returns:
88 cvcuda.Tensor: The output tensor.
89
90 Caution:
91 Restrictions to several arguments may apply. Check the C
92 API references of the CV-CUDA operator.
93 )pbdoc");
94
95 m.def("padandstack_into", &PadAndStackInto, "dst"_a, "src"_a, "top"_a, "left"_a, "border"_a = NVCV_BORDER_CONSTANT,
96 "bvalue"_a = 0, py::kw_only(), "stream"_a = nullptr, R"pbdoc(
97
98 Executes the Pad and Stack operation on the given cuda stream.
99
100 See also:
101 Refer to the CV-CUDA C API reference for the Pad and Stack operator
102 for more details and usage examples.
103
104 Args:
105 dst (cvcuda.Tensor): Output tensor to store the result of the operation.
106 src (cvcuda.ImageBatchVarShape): input image batch containing one or more images.
107 top (cvcuda.Tensor): Top tensor to store amount of top padding per batch input image.
108 left (cvcuda.Tensor): Left tensor to store amount of left padding per batch input image.
109 border (cvcuda.Border): Border mode to be used when accessing elements outside input image.
110 bvalue (float): Border value to be used for constant border mode.
111 stream (cvcuda.Stream, optional): CUDA Stream on which to perform the operation.
112
113 Returns:
114 None
115
116 Caution:
117 Restrictions to several arguments may apply. Check the C
118 API references of the CV-CUDA operator.
119 )pbdoc");
120}
121
122} // namespace cvcudapy

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected