class cv::viz::WImage3D

Overview

This 3D Widget represents an image in 3D space. : Moreā€¦

#include <widgets.hpp>

class WImage3D: public cv::viz::Widget3D
{
public:
    // construction

    WImage3D(
        InputArray image,
        const Size2d& size
        );

    WImage3D(
        InputArray image,
        const Size2d& size,
        const Vec3d& center,
        const Vec3d& normal,
        const Vec3d& up_vector
        );

    // methods

    void
    setImage(InputArray image);

    void
    setSize(const Size& size);
};

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
    applyTransform(const Affine3d& transform);

    Affine3d
    getPose() const;

    void
    setColor(const Color& color);

    void
    setPose(const Affine3d& pose);

    void
    updatePose(const Affine3d& pose);

Detailed Documentation

This 3D Widget represents an image in 3D space. :

Construction

WImage3D(
    InputArray image,
    const Size2d& size
    )

Constructs an WImage3D.

Parameters:

image BGR or Gray-Scale image.
size Size of the image.
WImage3D(
    InputArray image,
    const Size2d& size,
    const Vec3d& center,
    const Vec3d& normal,
    const Vec3d& up_vector
    )

Constructs an WImage3D.

Parameters:

image BGR or Gray-Scale image.
size Size of the image.
center Position of the image.
normal Normal of the plane that represents the image.
up_vector Determines orientation of the image.

Methods

void
setImage(InputArray image)

Sets the image content of the widget.

Parameters:

image BGR or Gray-Scale image.
void
setSize(const Size& size)

Sets the image size of the widget.

Parameters:

size the new size of the image.