Plot function for Mat data#

Classes#

Name

Description

class cv::plot::Plot2d

Class cv::plot::Plot2d#

#include <opencv2/plot.hpp>

Collaboration diagram for cv::plot::Plot2d:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Member Function Documentation#

render()#

void cv::plot::Plot2d::render(OutputArray _plotResult)

Python:

cv.plot.Plot2d.render([, _plotResult]) -> _plotResult

setGridLinesNumber()#

void cv::plot::Plot2d::setGridLinesNumber(int gridLinesNumber)

Python:

cv.plot.Plot2d.setGridLinesNumber(gridLinesNumber)

setInvertOrientation()#

void cv::plot::Plot2d::setInvertOrientation(bool _invertOrientation)

Python:

cv.plot.Plot2d.setInvertOrientation(_invertOrientation)

setMaxX()#

void cv::plot::Plot2d::setMaxX(double _plotMaxX)

Python:

cv.plot.Plot2d.setMaxX(_plotMaxX)

setMaxY()#

void cv::plot::Plot2d::setMaxY(double _plotMaxY)

Python:

cv.plot.Plot2d.setMaxY(_plotMaxY)

setMinX()#

void cv::plot::Plot2d::setMinX(double _plotMinX)

Python:

cv.plot.Plot2d.setMinX(_plotMinX)

setMinY()#

void cv::plot::Plot2d::setMinY(double _plotMinY)

Python:

cv.plot.Plot2d.setMinY(_plotMinY)

setNeedPlotLine()#

void cv::plot::Plot2d::setNeedPlotLine(bool _needPlotLine)

Python:

cv.plot.Plot2d.setNeedPlotLine(_needPlotLine)

Switches data visualization mode.

Parameters

  • _needPlotLine — if true then neighbour plot points will be connected by lines. In other case data will be plotted as a set of standalone points.

setPlotAxisColor()#

void cv::plot::Plot2d::setPlotAxisColor(Scalar _plotAxisColor)

Python:

cv.plot.Plot2d.setPlotAxisColor(_plotAxisColor)

setPlotBackgroundColor()#

void cv::plot::Plot2d::setPlotBackgroundColor(Scalar _plotBackgroundColor)

Python:

cv.plot.Plot2d.setPlotBackgroundColor(_plotBackgroundColor)

setPlotGridColor()#

void cv::plot::Plot2d::setPlotGridColor(Scalar _plotGridColor)

Python:

cv.plot.Plot2d.setPlotGridColor(_plotGridColor)

setPlotLineColor()#

void cv::plot::Plot2d::setPlotLineColor(Scalar _plotLineColor)

Python:

cv.plot.Plot2d.setPlotLineColor(_plotLineColor)

setPlotLineWidth()#

void cv::plot::Plot2d::setPlotLineWidth(int _plotLineWidth)

Python:

cv.plot.Plot2d.setPlotLineWidth(_plotLineWidth)

setPlotSize()#

void cv::plot::Plot2d::setPlotSize(
int _plotSizeWidth,
int _plotSizeHeight )

Python:

cv.plot.Plot2d.setPlotSize(_plotSizeWidth, _plotSizeHeight)

setPlotTextColor()#

void cv::plot::Plot2d::setPlotTextColor(Scalar _plotTextColor)

Python:

cv.plot.Plot2d.setPlotTextColor(_plotTextColor)

setPointIdxToPrint()#

void cv::plot::Plot2d::setPointIdxToPrint(int pointIdx)

Python:

cv.plot.Plot2d.setPointIdxToPrint(pointIdx)

Sets the index of a point which coordinates will be printed on the top left corner of the plot (if ShowText flag is true).

Parameters

  • pointIdx — index of the required point in data array.

setShowGrid()#

void cv::plot::Plot2d::setShowGrid(bool needShowGrid)

Python:

cv.plot.Plot2d.setShowGrid(needShowGrid)

setShowText()#

void cv::plot::Plot2d::setShowText(bool needShowText)

Python:

cv.plot.Plot2d.setShowText(needShowText)

create()#

static Ptr< Plot2d > cv::plot::Plot2d::create(InputArray data)

Python:

cv.plot.Plot2d.create(data) -> retval
cv.plot.Plot2d.create(dataX, dataY) -> retval
cv.plot.Plot2d_create(data) -> retval
cv.plot.Plot2d_create(dataX, dataY) -> retval

Creates Plot2d object.

Parameters

  • data\(1xN\) or \(Nx1\) matrix containing \(Y\) values of points to plot. \(X\) values will be equal to indexes of correspondind elements in data matrix.

create()#

static Ptr< Plot2d > cv::plot::Plot2d::create(
InputArray dataX,
InputArray dataY )

Python:

cv.plot.Plot2d.create(data) -> retval
cv.plot.Plot2d.create(dataX, dataY) -> retval
cv.plot.Plot2d_create(data) -> retval
cv.plot.Plot2d_create(dataX, dataY) -> retval

Creates Plot2d object.

Parameters

  • dataX\(1xN\) or \(Nx1\) matrix \(X\) values of points to plot.

  • dataY\(1xN\) or \(Nx1\) matrix containing \(Y\) values of points to plot.

Source file#

The documentation for this class was generated from the following file: