Tonemap

Objective-C

@interface Tonemap : Algorithm

Swift

class Tonemap : Algorithm

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

Member of Photo

Methods

  • Declaration

    Objective-C

    - (float)getGamma NS_SWIFT_NAME(getGamma());

    Swift

    func getGamma() -> Float
  • Tonemaps image

    Declaration

    Objective-C

    - (void)process:(nonnull Mat *)src dst:(nonnull Mat *)dst;

    Swift

    func process(src: Mat, dst: Mat)

    Parameters

    src

    source image - CV_32FC3 Mat (float 32 bits 3 channels)

    dst

    destination image - CV_32FC3 Mat with values in [0, 1] range

  • Declaration

    Objective-C

    - (void)setGamma:(float)gamma NS_SWIFT_NAME(setGamma(gamma:));

    Swift

    func setGamma(gamma: Float)