| 82 | } |
| 83 | |
| 84 | ImageBatchVarShape VarShapeRotate(ImageBatchVarShape &input, Tensor &angleDeg, Tensor &shift, |
| 85 | NVCVInterpolationType interpolation, std::optional<Stream> pstream) |
| 86 | { |
| 87 | ImageBatchVarShape output = ImageBatchVarShape::Create(input.capacity()); |
| 88 | |
| 89 | for (int i = 0; i < input.numImages(); ++i) |
| 90 | { |
| 91 | nvcv::ImageFormat format = input[i].format(); |
| 92 | nvcv::Size2D size = input[i].size(); |
| 93 | auto image = Image::Create(size, format); |
| 94 | output.pushBack(image); |
| 95 | } |
| 96 | |
| 97 | return VarShapeRotateInto(output, input, angleDeg, shift, interpolation, pstream); |
| 98 | } |
| 99 | |
| 100 | } // namespace |
| 101 | |