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

Function LaplacianVarShapeInto

python/mod_cvcuda/operators/OpLaplacian.cpp:63–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63ImageBatchVarShape LaplacianVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &input, Tensor &ksize,
64 Tensor &scale, NVCVBorderType border, std::optional<Stream> pstream)
65{
66 if (!pstream)
67 {
68 pstream = Stream::Current();
69 }
70
71 auto laplacian = CreateOperator<cvcuda::Laplacian>();
72
73 ResourceGuard guard(*pstream);
74 guard.add(LockMode::LOCK_MODE_READ, {input, ksize, scale});
75 guard.add(LockMode::LOCK_MODE_WRITE, {output});
76 guard.add(LockMode::LOCK_MODE_NONE, {*laplacian});
77
78 laplacian->submit(pstream->cudaHandle(), input, output, ksize, scale, border);
79
80 return output;
81}
82
83ImageBatchVarShape LaplacianVarShape(ImageBatchVarShape &input, Tensor &ksize, Tensor &scale, NVCVBorderType border,
84 std::optional<Stream> pstream)

Callers 1

LaplacianVarShapeFunction · 0.85

Calls 3

cudaHandleMethod · 0.80
addMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected