| 165 | } |
| 166 | |
| 167 | ImageBatchVarShape 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 |
nothing calls this directly
no test coverage detected