public class Plot2d extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
Plot2d(long addr) |
Modifier and Type | Method and Description |
---|---|
static Plot2d |
__fromPtr__(long addr) |
static Plot2d |
create(Mat data)
Creates Plot2d object
|
static Plot2d |
create(Mat dataX,
Mat dataY)
Creates Plot2d object
|
protected void |
finalize() |
void |
render(Mat _plotResult) |
void |
setGridLinesNumber(int gridLinesNumber) |
void |
setInvertOrientation(boolean _invertOrientation) |
void |
setMaxX(double _plotMaxX) |
void |
setMaxY(double _plotMaxY) |
void |
setMinX(double _plotMinX) |
void |
setMinY(double _plotMinY) |
void |
setNeedPlotLine(boolean _needPlotLine)
Switches data visualization mode
|
void |
setPlotAxisColor(Scalar _plotAxisColor) |
void |
setPlotBackgroundColor(Scalar _plotBackgroundColor) |
void |
setPlotGridColor(Scalar _plotGridColor) |
void |
setPlotLineColor(Scalar _plotLineColor) |
void |
setPlotLineWidth(int _plotLineWidth) |
void |
setPlotSize(int _plotSizeWidth,
int _plotSizeHeight) |
void |
setPlotTextColor(Scalar _plotTextColor) |
void |
setPointIdxToPrint(int 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).
|
void |
setShowGrid(boolean needShowGrid) |
void |
setShowText(boolean needShowText) |
clear, empty, getDefaultName, getNativeObjAddr, save
public static Plot2d __fromPtr__(long addr)
public static Plot2d create(Mat data)
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.public static Plot2d create(Mat dataX, Mat dataY)
dataX
- \(1xN\) or \(Nx1\) matrix \(X\) values of points to plot.dataY
- \(1xN\) or \(Nx1\) matrix containing \(Y\) values of points to plot.public void render(Mat _plotResult)
public void setGridLinesNumber(int gridLinesNumber)
public void setInvertOrientation(boolean _invertOrientation)
public void setMaxX(double _plotMaxX)
public void setMaxY(double _plotMaxY)
public void setMinX(double _plotMinX)
public void setMinY(double _plotMinY)
public void setNeedPlotLine(boolean _needPlotLine)
_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.public void setPlotAxisColor(Scalar _plotAxisColor)
public void setPlotBackgroundColor(Scalar _plotBackgroundColor)
public void setPlotGridColor(Scalar _plotGridColor)
public void setPlotLineColor(Scalar _plotLineColor)
public void setPlotLineWidth(int _plotLineWidth)
public void setPlotSize(int _plotSizeWidth, int _plotSizeHeight)
public void setPlotTextColor(Scalar _plotTextColor)
public void setPointIdxToPrint(int pointIdx)
pointIdx
- index of the required point in data array.public void setShowGrid(boolean needShowGrid)
public void setShowText(boolean needShowText)
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2