| 48 | } |
| 49 | |
| 50 | Tensor 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 |
nothing calls this directly
no test coverage detected