Package org.opencv.plot
Class Plot2d
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.plot.Plot2d
 
 
- 
 public class Plot2d extends Algorithm plot Plot function for Mat data
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedPlot2d(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Plot2d__fromPtr__(long addr)static Plot2dcreate(Mat data)Creates Plot2d objectstatic Plot2dcreate(Mat dataX, Mat dataY)Creates Plot2d objectprotected voidfinalize()voidrender(Mat _plotResult)voidsetGridLinesNumber(int gridLinesNumber)voidsetInvertOrientation(boolean _invertOrientation)voidsetMaxX(double _plotMaxX)voidsetMaxY(double _plotMaxY)voidsetMinX(double _plotMinX)voidsetMinY(double _plotMinY)voidsetNeedPlotLine(boolean _needPlotLine)Switches data visualization modevoidsetPlotAxisColor(Scalar _plotAxisColor)voidsetPlotBackgroundColor(Scalar _plotBackgroundColor)voidsetPlotGridColor(Scalar _plotGridColor)voidsetPlotLineColor(Scalar _plotLineColor)voidsetPlotLineWidth(int _plotLineWidth)voidsetPlotSize(int _plotSizeWidth, int _plotSizeHeight)voidsetPlotTextColor(Scalar _plotTextColor)voidsetPointIdxToPrint(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).voidsetShowGrid(boolean needShowGrid)voidsetShowText(boolean needShowText)- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static Plot2d __fromPtr__(long addr) 
 - 
setMinXpublic void setMinX(double _plotMinX) 
 - 
setMinYpublic void setMinY(double _plotMinY) 
 - 
setMaxXpublic void setMaxX(double _plotMaxX) 
 - 
setMaxYpublic void setMaxY(double _plotMaxY) 
 - 
setPlotLineWidthpublic void setPlotLineWidth(int _plotLineWidth) 
 - 
setNeedPlotLinepublic void setNeedPlotLine(boolean _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.
 
 - 
setPlotLineColorpublic void setPlotLineColor(Scalar _plotLineColor) 
 - 
setPlotBackgroundColorpublic void setPlotBackgroundColor(Scalar _plotBackgroundColor) 
 - 
setPlotAxisColorpublic void setPlotAxisColor(Scalar _plotAxisColor) 
 - 
setPlotGridColorpublic void setPlotGridColor(Scalar _plotGridColor) 
 - 
setPlotTextColorpublic void setPlotTextColor(Scalar _plotTextColor) 
 - 
setPlotSizepublic void setPlotSize(int _plotSizeWidth, int _plotSizeHeight)
 - 
setShowGridpublic void setShowGrid(boolean needShowGrid) 
 - 
setShowTextpublic void setShowText(boolean needShowText) 
 - 
setGridLinesNumberpublic void setGridLinesNumber(int gridLinesNumber) 
 - 
setInvertOrientationpublic void setInvertOrientation(boolean _invertOrientation) 
 - 
setPointIdxToPrintpublic 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).- Parameters:
- pointIdx- index of the required point in data array.
 
 - 
renderpublic void render(Mat _plotResult) 
 - 
createpublic static Plot2d create(Mat data) 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.
- Returns:
- automatically generated
 
 - 
createpublic static Plot2d create(Mat dataX, Mat dataY) 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.
- Returns:
- automatically generated
 
 
- 
 
-