public void Inpaint() { using var src = Image("building.jpg"); using var mask = Image("building_mask.bmp", ImreadModes.Grayscale); using var dst = new Mat(src.Size(), src.Type()); CvXPhoto.Inpaint(src, mask, dst, InpaintTypes.SHIFTMAP); ShowImagesWhenDebugMode(src); ShowImagesWhenDebugMode(dst); }
public void Inpaint() { using (var src = Image("building.jpg")) using (var mask = Image("building_mask.bmp", ImreadModes.GrayScale)) using (var dst = new Mat(src.Size(), src.Type())) { CvXPhoto.Inpaint(src, mask, dst, InpaintTypes.ShiftMap); ShowImagesWhenDebugMode(src); ShowImagesWhenDebugMode(dst); } }