class cv::detail::GainCompensator

Overview

Exposure compensator which tries to remove exposure related artifacts by adjusting image intensities, see [11] and [92] for details. Moreā€¦

#include <exposure_compensate.hpp>

class GainCompensator: public cv::detail::ExposureCompensator
{
public:
    // methods

    virtual
    void
    apply(
        int index,
        Point corner,
        InputOutputArray image,
        InputArray mask
        );

    virtual
    void
    feed(
        const std::vector<Point>& corners,
        const std::vector<UMat>& images,
        const std::vector<std::pair<UMat, uchar>>& masks
        );

    std::vector<double>
    gains() const;
};

Inherited Members

public:
    // enums

    enum
    {
        NO,
        GAIN,
        GAIN_BLOCKS,
    };

    // methods

    virtual
    void
    apply(
        int index,
        Point corner,
        InputOutputArray image,
        InputArray mask
        ) = 0;

    void
    feed(
        const std::vector<Point>& corners,
        const std::vector<UMat>& images,
        const std::vector<UMat>& masks
        );

    virtual
    void
    feed(
        const std::vector<Point>& corners,
        const std::vector<UMat>& images,
        const std::vector<std::pair<UMat, uchar>>& masks
        ) = 0;

    static
    Ptr<ExposureCompensator>
    createDefault(int type);

Detailed Documentation

Exposure compensator which tries to remove exposure related artifacts by adjusting image intensities, see [11] and [92] for details.

Methods

virtual
void
apply(
    int index,
    Point corner,
    InputOutputArray image,
    InputArray mask
    )

Compensate exposure in the specified image.

Parameters:

index Image index
corner Image top-left corner
image Image to process
mask Image mask
virtual
void
feed(
    const std::vector<Point>& corners,
    const std::vector<UMat>& images,
    const std::vector<std::pair<UMat, uchar>>& masks
    )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.