Пример #1
0
 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);
 }
Пример #2
0
 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);
             }
 }