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

Function VarShapeHQResizeInto

python/mod_cvcuda/operators/OpHQResize.cpp:444–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444ImageBatchVarShape VarShapeHQResizeInto(ImageBatchVarShape &dst, const ImageBatchVarShape &src,
445 std::optional<bool> antialias, const std::optional<Rois> &roi,
446 std::optional<NVCVInterpolationType> interpolation,
447 std::optional<NVCVInterpolationType> minInterpolation,
448 std::optional<NVCVInterpolationType> magInterpolation,
449 std::optional<Stream> pstream)
450{
451 Stream stream = pstream ? *pstream : Stream::Current();
452 auto op = CreatePyOpHQResize();
453
454 RoiHelper parsedRoi(roi, 2);
455 NVCVInterpolationType minInterpolationArg, magInterpolationArg;
456 GetMinMagInterpolation(minInterpolationArg, magInterpolationArg, interpolation, minInterpolation, magInterpolation);
457
458 RunGuard(op, src, dst, stream,
459 [&]()
460 {
461 op->submit(stream.cudaHandle(), src, dst, minInterpolationArg, magInterpolationArg,
462 antialias.value_or(false), parsedRoi.NonOwningHandle());
463 });
464 return dst;
465}
466
467ImageBatchVarShape VarShapeHQResize(ImageBatchVarShape &src, const std::vector<std::tuple<int, int>> &outShape,
468 std::optional<bool> antialias, const std::optional<Rois> &roi,

Callers 1

VarShapeHQResizeFunction · 0.85

Calls 6

CreatePyOpHQResizeFunction · 0.85
GetMinMagInterpolationFunction · 0.85
RunGuardFunction · 0.85
cudaHandleMethod · 0.80
submitMethod · 0.45
NonOwningHandleMethod · 0.45

Tested by

no test coverage detected