ImageEn, unit ievision

TIEVisionImage.inpaint

TIEVisionImage.inpaint


Declaration

procedure inpaint(mask: TIEVisionImage; range: double; method: TIEVisionInpaintMethod = ievINPAINT_NS); overload; safecall;
procedure inpaint(brushWidth: int32_t; brushHeight: int32_t; const subimageRect: TIEVisionRect; range: double; method: TIEVisionInpaintMethod = ievINPAINT_NS); overload; safecall;


Description

Restores the selected region in an image using the region neighborhood (to fill missing areas of image or erase blemishes).
First overload needs a mask to identify the area to be inpainted.
Second overload builds automatically the mask using specified brush size.



Parameter Description
mask Inpainting mask, 8-bit 1-channel image. Non-zero pixels indicate the area that needs to be inpainted
range Radius of a circular neighborhood of each point inpainted that is considered by the algorithm
method Inpainting algorithm, either Navier-Stokes method (ievINPAINT_NS) or the Telea algorithm (ievINPAINT_TELEA)
brushWidth Width of area to inpaint
brushHeight Height of area to inpaint
subimageRect Rectangle of area of interest (which includes the area to inpaint)


Demo

Demo  Demos\IEVision\Inpaint_Brush\Inpaint_Brush.dpr
Demo  Demos\IEVision\Inpaint_Selection\Inpaint_Selection.dpr