OpenCV 2.4.2

org.opencv.photo
Class Photo

java.lang.Object
  extended by org.opencv.photo.Photo

public class Photo
extends java.lang.Object


Field Summary
static int INPAINT_NS
           
static int INPAINT_TELEA
           
 
Constructor Summary
Photo()
           
 
Method Summary
static void inpaint(Mat src, Mat inpaintMask, Mat dst, double inpaintRadius, int flags)
          Restores the selected region in an image using the region neighborhood.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPAINT_NS

public static final int INPAINT_NS
See Also:
Constant Field Values

INPAINT_TELEA

public static final int INPAINT_TELEA
See Also:
Constant Field Values
Constructor Detail

Photo

public Photo()
Method Detail

inpaint

public static void inpaint(Mat src,
                           Mat inpaintMask,
                           Mat dst,
                           double inpaintRadius,
                           int flags)

Restores the selected region in an image using the region neighborhood.

The function reconstructs the selected image area from the pixel near the area boundary. The function may be used to remove dust and scratches from a scanned photo, or to remove undesirable objects from still images or video. See http://en.wikipedia.org/wiki/Inpainting for more details.

Parameters:
src - Input 8-bit 1-channel or 3-channel image.
inpaintMask - Inpainting mask, 8-bit 1-channel image. Non-zero pixels indicate the area that needs to be inpainted.
dst - Output image with the same size and type as src.
inpaintRadius - Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.
flags - Inpainting method that could be one of the following:
  • INPAINT_NS Navier-Stokes based method.
  • INPAINT_TELEA Method by Alexandru Telea [Telea04].
See Also:
org.opencv.photo.Photo.inpaint

Official OpenCV 2.4 Documentation