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

Function VarShapeRotateInto

python/mod_cvcuda/operators/OpRotate.cpp:64–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64ImageBatchVarShape VarShapeRotateInto(ImageBatchVarShape &output, ImageBatchVarShape &input, Tensor &angleDeg,
65 Tensor &shift, NVCVInterpolationType interpolation, std::optional<Stream> pstream)
66{
67 if (!pstream)
68 {
69 pstream = Stream::Current();
70 }
71
72 auto rotate = CreateOperator<cvcuda::Rotate>(input.capacity());
73
74 ResourceGuard guard(*pstream);
75 guard.add(LockMode::LOCK_MODE_READ, {input, angleDeg, shift});
76 guard.add(LockMode::LOCK_MODE_WRITE, {output});
77 guard.add(LockMode::LOCK_MODE_READWRITE, {*rotate});
78
79 rotate->submit(pstream->cudaHandle(), input, output, angleDeg, shift, interpolation);
80
81 return output;
82}
83
84ImageBatchVarShape VarShapeRotate(ImageBatchVarShape &input, Tensor &angleDeg, Tensor &shift,
85 NVCVInterpolationType interpolation, std::optional<Stream> pstream)

Callers 1

VarShapeRotateFunction · 0.85

Calls 4

cudaHandleMethod · 0.80
capacityMethod · 0.45
addMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected