Skip to content

Computational photography

All modules / photo

AlignExposuresclass

The base class for algorithms that align images of the same scene with different exposures

AlignMTBclass

This algorithm converts images to median threshold bitmaps (1 for pixels brighter than median

CalibrateCRFclass

The base class for camera response calibration algorithms.

CalibrateDebevecclass

Inverse camera response function is extracted for each brightness value by minimizing an objective

CalibrateRobertsonclass

Inverse camera response function is extracted for each brightness value by minimizing an objective

ccm_CcmTypeclass

Enum of the possible types of ccm.

ccm_ColorCheckerTypeclass

Macbeth and Vinyl ColorChecker with 2deg D50

ccm_ColorCorrectionModelclass

Core class of ccm model

ccm_ColorSpaceclass

Native enum entries for ccm color space. Pass an entry to enum-typed arguments or its .value to numeric arguments.

ccm_DistanceTypeclass

Enum of possible functions to calculate the distance between colors.

ccm_gammaCorrectionfunction

Applies gamma correction to the input image.

ccm_InitialMethodTypeclass

Enum of the possible types of initial method.

ccm_LinearizationTypeclass

Linearization transformation type

colorChangefunction

Given an original color image, two differently colored versions of this image can be mixed

correctChromaticAberrationfunction

photo_render

createAlignMTBfunction

Creates AlignMTB object

createCalibrateDebevecfunction

Creates CalibrateDebevec object

createCalibrateRobertsonfunction

Creates CalibrateRobertson object

createMergeDebevecfunction

Creates MergeDebevec object

createMergeMertensfunction

Creates MergeMertens object

createMergeRobertsonfunction

Creates MergeRobertson object

createTonemapfunction

Creates simple linear mapper with gamma correction

createTonemapDragofunction

Creates TonemapDrago object

createTonemapMantiukfunction

Creates TonemapMantiuk object

createTonemapReinhardfunction

Creates TonemapReinhard object

decolorfunction

photo_hdr

denoise_TVL1function

Primal-dual algorithm is an algorithm for solving special types of variational problems (that is,

detailEnhancefunction

This filter enhances the details of a particular image.

edgePreservingFilterfunction

Filtering is the fundamental operation in image and video processing. Edge-preserving smoothing

fastNlMeansDenoisingfunction

photo_inpaint

fastNlMeansDenoising1function

Perform image denoising using Non-local Means Denoising algorithm

fastNlMeansDenoisingColoredfunction

Modification of fastNlMeansDenoising function for colored images

fastNlMeansDenoisingColoredMultifunction

Modification of fastNlMeansDenoisingMulti function for colored images sequences

fastNlMeansDenoisingMultifunction

Modification of fastNlMeansDenoising function for images sequence where consecutive images have been

fastNlMeansDenoisingMulti1function

Modification of fastNlMeansDenoising function for images sequence where consecutive images have been

illuminationChangefunction

Applying an appropriate non-linear transformation to the gradient field inside the selection and

inpaintfunction

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

loadChromaticAberrationParamsfunction

Load chromatic-aberration calibration parameters from opened FileStorage.

MergeDebevecclass

The resulting HDR image is calculated as weighted average of the exposures considering exposure

MergeExposuresclass

The base class algorithms that can merge exposure sequence to a single image.

MergeMertensclass

Pixels are weighted using contrast, saturation and well-exposedness measures, than images are

MergeRobertsonclass

The resulting HDR image is calculated as weighted average of the exposures considering exposure

pencilSketchfunction

example: samples/cpp/tutorial_code/photo/non_photorealistic_rendering/npr_demo.cpp

seamlessClonefunction

example: samples/cpp/tutorial_code/photo/seamless_cloning/cloning_demo.cpp

SeamlessCloneFlagsclass

photo_decolor

segmentation_IntelligentScissorsMBclass

Intelligent Scissors image segmentation

stylizationfunction

Stylization aims to produce digital imagery with a wide variety of effects not focused on

textureFlatteningfunction

By retaining only the gradients at edge locations, before integrating with the Poisson solver, one

Tonemapclass

Base class for tonemapping algorithms - tools that are used to map HDR image to 8-bit range.

TonemapDragoclass

Adaptive logarithmic mapping is a fast global tonemapping algorithm that scales the image in

TonemapMantiukclass

This algorithm transforms image to contrast using gradients on all levels of gaussian pyramid,

TonemapReinhardclass

This is a global tonemapping operator that models human visual system.

Constants

Use the named constant from cv. In particular, OpenCV 5 matrix type codes differ from OpenCV 4.

INPAINT_NS

Use Navier-Stokes based method

INPAINT_TELEA

Use the algorithm proposed by Alexandru Telea [Telea04]

LDR_SIZE

LDR_SIZE: photo_denoise

NORMAL_CLONE

Mixed seamless cloning.

MIXED_CLONE

Monochrome transfer cloning.

MONOCHROME_TRANSFER

Enhanced normal seamless cloning.

NORMAL_CLONE_WIDE

Enhanced normal seamless cloning. Similar to NORMAL_CLONE, but with an advanced approach to ROI (Region of Interest) calculation. This mode processes a larger source region by considering the entire mask area instead of only the bounding rectangle of non-zero pixels.

MIXED_CLONE_WIDE

Enhanced mixed seamless cloning. Similar to MIXED_CLONE, but with an advanced approach to ROI (Region of Interest) calculation. This mode processes a larger source region by considering the entire mask area instead of only the bounding rectangle of non-zero pixels.

MONOCHROME_TRANSFER_WIDE

Enhanced monochrome transfer cloning. Similar to MONOCHROME_TRANSFER, but with an advanced approach to ROI (Region of Interest) calculation. This mode processes a larger source region by considering the entire mask area instead of only the bounding rectangle of non-zero pixels.

RECURS_FILTER

Recursive Filtering

NORMCONV_FILTER

Normalized Convolution Filtering

ccm_CCM_LINEAR

Uses a 3\times3 matrix to linearly transform RGB values without offsets.

ccm_CCM_AFFINE

Uses a 4\times3 matrix to affine transform RGB values with both scaling and offset terms.

ccm_INITIAL_METHOD_WHITE_BALANCE

The white balance method. The initial value is:\n

ccm_INITIAL_METHOD_LEAST_SQUARE

The least square method is an optimal solution under the linear RGB distance function

ccm_COLORCHECKER_MACBETH

Macbeth ColorChecker

ccm_COLORCHECKER_VINYL

DKK ColorChecker

ccm_COLORCHECKER_DIGITAL_SG

DigitalSG ColorChecker with 140 squares

ccm_COLOR_SPACE_SRGB
ccm_COLOR_SPACE_SRGBL

https://en.wikipedia.org/wiki/SRGB , linear RGB color space

ccm_COLOR_SPACE_ADOBE_RGB
ccm_COLOR_SPACE_ADOBE_RGBL
ccm_COLOR_SPACE_WIDE_GAMUT_RGB
ccm_COLOR_SPACE_WIDE_GAMUT_RGBL
ccm_COLOR_SPACE_PRO_PHOTO_RGB
ccm_COLOR_SPACE_PRO_PHOTO_RGBL
ccm_COLOR_SPACE_DCI_P3_RGB
ccm_COLOR_SPACE_DCI_P3_RGBL

https://en.wikipedia.org/wiki/DCI-P3 , linear RGB color space

ccm_COLOR_SPACE_APPLE_RGB
ccm_COLOR_SPACE_APPLE_RGBL
ccm_COLOR_SPACE_REC_709_RGB
ccm_COLOR_SPACE_REC_709_RGBL

https://en.wikipedia.org/wiki/Rec._709 , linear RGB color space

ccm_COLOR_SPACE_REC_2020_RGB
ccm_COLOR_SPACE_REC_2020_RGBL

https://en.wikipedia.org/wiki/Rec._2020 , linear RGB color space

ccm_COLOR_SPACE_XYZ_D65_2

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D65 illuminant, 2 degree

ccm_COLOR_SPACE_XYZ_D50_2

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D50 illuminant, 2 degree

ccm_COLOR_SPACE_XYZ_D65_10

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D65 illuminant, 10 degree

ccm_COLOR_SPACE_XYZ_D50_10

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D50 illuminant, 10 degree

ccm_COLOR_SPACE_XYZ_A_2

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, A illuminant, 2 degree

ccm_COLOR_SPACE_XYZ_A_10

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, A illuminant, 10 degree

ccm_COLOR_SPACE_XYZ_D55_2

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D55 illuminant, 2 degree

ccm_COLOR_SPACE_XYZ_D55_10

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D55 illuminant, 10 degree

ccm_COLOR_SPACE_XYZ_D75_2

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D75 illuminant, 2 degree

ccm_COLOR_SPACE_XYZ_D75_10

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, D75 illuminant, 10 degree

ccm_COLOR_SPACE_XYZ_E_2

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, E illuminant, 2 degree

ccm_COLOR_SPACE_XYZ_E_10

https://en.wikipedia.org/wiki/CIE_1931_color_space , XYZ color space, E illuminant, 10 degree

ccm_COLOR_SPACE_LAB_D65_2

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D65 illuminant, 2 degree

ccm_COLOR_SPACE_LAB_D50_2

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D50 illuminant, 2 degree

ccm_COLOR_SPACE_LAB_D65_10

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D65 illuminant, 10 degree

ccm_COLOR_SPACE_LAB_D50_10

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D50 illuminant, 10 degree

ccm_COLOR_SPACE_LAB_A_2

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, A illuminant, 2 degree

ccm_COLOR_SPACE_LAB_A_10

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, A illuminant, 10 degree

ccm_COLOR_SPACE_LAB_D55_2

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D55 illuminant, 2 degree

ccm_COLOR_SPACE_LAB_D55_10

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D55 illuminant, 10 degree

ccm_COLOR_SPACE_LAB_D75_2

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D75 illuminant, 2 degree

ccm_COLOR_SPACE_LAB_D75_10

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, D75 illuminant, 10 degree

ccm_COLOR_SPACE_LAB_E_2

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, E illuminant, 2 degree

ccm_COLOR_SPACE_LAB_E_10

https://en.wikipedia.org/wiki/CIELAB_color_space , Lab color space, E illuminant, 10 degree

ccm_LINEARIZATION_IDENTITY

no change is made

ccm_LINEARIZATION_GAMMA

gamma correction; Need assign a value to gamma simultaneously

ccm_LINEARIZATION_COLORPOLYFIT

polynomial fitting channels respectively; Need assign a value to deg simultaneously

ccm_LINEARIZATION_COLORLOGPOLYFIT

logarithmic polynomial fitting channels respectively; Need assign a value to deg simultaneously

ccm_LINEARIZATION_GRAYPOLYFIT

grayscale polynomial fitting; Need assign a value to deg and dst_whites simultaneously

ccm_LINEARIZATION_GRAYLOGPOLYFIT

grayscale Logarithmic polynomial fitting; Need assign a value to deg and dst_whites simultaneously

ccm_DISTANCE_CIE76

The 1976 formula is the first formula that related a measured color difference to a known set of CIELAB coordinates.

ccm_DISTANCE_CIE94_GRAPHIC_ARTS

The 1976 definition was extended to address perceptual non-uniformities.

ccm_DISTANCE_CIE94_TEXTILES

The 1976 definition was extended to address perceptual non-uniformities.

ccm_DISTANCE_CIE2000

ccm distance cie2000 constant (3), defined by OpenCV for cv::ccm.

ccm_DISTANCE_CMC_1TO1

In 1984, the Colour Measurement Committee of the Society of Dyers and Colourists defined a difference measure, also based on the LCh color model.

ccm_DISTANCE_CMC_2TO1

In 1984, the Colour Measurement Committee of the Society of Dyers and Colourists defined a difference measure, also based on the LCh color model.

ccm_DISTANCE_RGB

Euclidean distance of rgb color space

ccm_DISTANCE_RGBL

Euclidean distance of rgbl color space