class cv::Tonemap

Overview

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

#include <photo.hpp>

class Tonemap: public cv::Algorithm
{
public:
    // methods

    virtual
    float
    getGamma() const = 0;

    virtual
    void
    process(
        InputArray src,
        OutputArray dst
        ) = 0;

    virtual
    void
    setGamma(float gamma) = 0;
};

// direct descendants

class TonemapDrago;
class TonemapDurand;
class TonemapMantiuk;
class TonemapReinhard;

Inherited Members

public:
    // methods

    virtual
    void
    clear();

    virtual
    bool
    empty() const;

    virtual
    String
    getDefaultName() const;

    virtual
    void
    read(const FileNode& fn);

    virtual
    void
    save(const String& filename) const;

    virtual
    void
    write(FileStorage& fs) const;

    template <typename _Tp>
    static
    Ptr<_Tp>
    load(
        const String& filename,
        const String& objname = String()
        );

    template <typename _Tp>
    static
    Ptr<_Tp>
    loadFromString(
        const String& strModel,
        const String& objname = String()
        );

    template <typename _Tp>
    static
    Ptr<_Tp>
    read(const FileNode& fn);

protected:
    // methods

    void
    writeFormat(FileStorage& fs) const;

Detailed Documentation

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

Methods

virtual
void
process(
    InputArray src,
    OutputArray dst
    ) = 0

Tonemaps image.

Parameters:

src source image - 32-bit 3-channel Mat
dst destination image - 32-bit 3-channel Mat with values in [0, 1] range