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

Function InpaintVarShapeInto

python/mod_cvcuda/operators/OpInpaint.cpp:147–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147ImageBatchVarShape InpaintVarShapeInto(ImageBatchVarShape &output, ImageBatchVarShape &input, ImageBatchVarShape &masks,
148 double inpaintRadius, std::optional<Stream> pstream)
149{
150 if (!pstream)
151 {
152 pstream = Stream::Current();
153 }
154 nvcv::Size2D maxShape = input.maxSize();
155 auto inpaint = CreateOperatorEx<PyOpInpaint>(input.numImages(), maxShape);
156
157 ResourceGuard guard(*pstream);
158 guard.add(LockMode::LOCK_MODE_READ, {input, masks});
159 guard.add(LockMode::LOCK_MODE_WRITE, {output});
160 guard.add(LockMode::LOCK_MODE_READWRITE, {*inpaint});
161
162 inpaint->submit(pstream->cudaHandle(), input, masks, output, inpaintRadius);
163
164 return output;
165}
166
167ImageBatchVarShape InpaintVarShape(ImageBatchVarShape &input, ImageBatchVarShape &masks, double inpaintRadius,
168 std::optional<Stream> pstream)

Callers 1

InpaintVarShapeFunction · 0.85

Calls 5

cudaHandleMethod · 0.80
maxSizeMethod · 0.45
numImagesMethod · 0.45
addMethod · 0.45
submitMethod · 0.45

Tested by

no test coverage detected