Renesas / opencv-lib

Dependents:   RZ_A2M_Mbed_samples

Embed: (wiki syntax)

« Back to documentation index

Computational Photography

Computational Photography

Modules

 Denoising
 HDR imaging
 

This section describes high dynamic range imaging algorithms namely tonemapping, exposure alignment, camera calibration with multiple exposures and exposure fusion.


 Seamless Cloning
 Non-Photorealistic Rendering
 C API

Enumerations

enum  
 

the inpainting algorithm

More...

Functions

CV_EXPORTS_W void inpaint (InputArray src, InputArray inpaintMask, OutputArray dst, double inpaintRadius, int flags)
 Restores the selected region in an image using the region neighborhood.
CV_EXPORTS_W void decolor (InputArray src, OutputArray grayscale, OutputArray color_boost)
 Transforms a color image to a grayscale image.

Enumeration Type Documentation

anonymous enum

the inpainting algorithm

Definition at line 71 of file photo.hpp.


Function Documentation

CV_EXPORTS_W void cv::decolor ( InputArray  src,
OutputArray  grayscale,
OutputArray  color_boost 
)

Transforms a color image to a grayscale image.

It is a basic tool in digital printing, stylized black-and-white photograph rendering, and in many single channel image processing applications CL12 .

Parameters:
srcInput 8-bit 3-channel image.
grayscaleOutput 8-bit 1-channel image.
color_boostOutput 8-bit 3-channel image.

This function is to be applied on color images.

CV_EXPORTS_W void cv::inpaint ( InputArray  src,
InputArray  inpaintMask,
OutputArray  dst,
double  inpaintRadius,
int  flags 
)

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

Parameters:
srcInput 8-bit 1-channel or 3-channel image.
inpaintMaskInpainting mask, 8-bit 1-channel image. Non-zero pixels indicate the area that needs to be inpainted.
dstOutput image with the same size and type as src .
inpaintRadiusRadius of a circular neighborhood of each point inpainted that is considered by the algorithm.
flagsInpainting method that could be one of the following:

  • **INPAINT_NS** Navier-Stokes based method [Navier01]
  • **INPAINT_TELEA** Method by Alexandru Telea Telea04 .

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.

Note:
  • An example using the inpainting technique can be found at opencv_source_code/samples/cpp/inpaint.cpp
    • (Python) An example using the inpainting technique can be found at opencv_source_code/samples/python/inpaint.py