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

Function VarShapeRotate

python/mod_cvcuda/operators/OpRotate.cpp:84–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84ImageBatchVarShape 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

Callers

nothing calls this directly

Calls 6

VarShapeRotateIntoFunction · 0.85
capacityMethod · 0.45
numImagesMethod · 0.45
formatMethod · 0.45
sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected