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

Function InpaintVarShape

python/mod_cvcuda/operators/OpInpaint.cpp:167–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167ImageBatchVarShape InpaintVarShape(ImageBatchVarShape &input, ImageBatchVarShape &masks, double inpaintRadius,
168 std::optional<Stream> pstream)
169{
170 ImageBatchVarShape output = ImageBatchVarShape::Create(input.numImages());
171
172 auto format = input.uniqueFormat();
173 if (!format)
174 {
175 throw std::runtime_error("All images in input must have the same format.");
176 }
177
178 for (auto img = input.begin(); img != input.end(); ++img)
179 {
180 auto newimg = Image::Create(img->size(), format);
181 output.pushBack(newimg);
182 }
183
184 return InpaintVarShapeInto(output, input, masks, inpaintRadius, pstream);
185}
186
187} // namespace
188

Callers

nothing calls this directly

Calls 7

InpaintVarShapeIntoFunction · 0.85
numImagesMethod · 0.45
uniqueFormatMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
pushBackMethod · 0.45

Tested by

no test coverage detected