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

Function PadAndStack

python/mod_cvcuda/operators/OpPadAndStack.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50Tensor PadAndStack(ImageBatchVarShape &input, Tensor &top, Tensor &left, NVCVBorderType border, float borderValue,
51 std::optional<Stream> pstream)
52{
53 nvcv::ImageFormat fmt = input.uniqueFormat();
54 if (fmt == nvcv::FMT_NONE)
55 {
56 throw std::runtime_error("All images in the input must have the same format");
57 }
58
59 Tensor output = Tensor::CreateForImageBatch(input.numImages(), input.maxSize(), fmt);
60
61 return PadAndStackInto(output, input, top, left, border, borderValue, pstream);
62}
63
64} // namespace
65

Callers

nothing calls this directly

Calls 4

PadAndStackIntoFunction · 0.85
uniqueFormatMethod · 0.45
numImagesMethod · 0.45
maxSizeMethod · 0.45

Tested by

no test coverage detected