class cv::viz::WImageOverlay

Overview

This 2D Widget represents an image overlay. : Moreā€¦

#include <widgets.hpp>

class WImageOverlay: public cv::viz::Widget2D
{
public:
    // construction

    WImageOverlay(
        InputArray image,
        const Rect& rect
        );

    // methods

    void
    setImage(InputArray image);
};

Inherited Members

public:
    // methods

    template <typename _W>
    _W
    cast();

    Widget2D
    cast();

    WWidgetMerger
    cast();

    double
    getRenderingProperty(int property) const;

    Widget&
    operator=(const Widget& other);

    void
    setRenderingProperty(
        int property,
        double value
        );

    static
    Widget
    fromPlyFile(const String& file_name);

    void
    setColor(const Color& color);

Detailed Documentation

This 2D Widget represents an image overlay. :

Construction

WImageOverlay(
    InputArray image,
    const Rect& rect
    )

Constructs an WImageOverlay.

Parameters:

image BGR or Gray-Scale image.
rect Image is scaled and positioned based on rect.

Methods

void
setImage(InputArray image)

Sets the image content of the widget.

Parameters:

image BGR or Gray-Scale image.