Class Plot2d
java.lang.Object
org.opencv.core.Algorithm
org.opencv.plot.Plot2d
plot Plot function for Mat data
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Plot2d__fromPtr__(long addr) static Plot2dCreates Plot2d objectstatic Plot2dCreates Plot2d objectprotected voidfinalize()voidvoidsetGridLinesNumber(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 Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
Plot2d
protected Plot2d(long addr)
-
-
Method Details
-
__fromPtr__
-
setMinX
public void setMinX(double _plotMinX) -
setMinY
public void setMinY(double _plotMinY) -
setMaxX
public void setMaxX(double _plotMaxX) -
setMaxY
public void setMaxY(double _plotMaxY) -
setPlotLineWidth
public void setPlotLineWidth(int _plotLineWidth) -
setNeedPlotLine
public 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.
-
setPlotLineColor
-
setPlotBackgroundColor
-
setPlotAxisColor
-
setPlotGridColor
-
setPlotTextColor
-
setPlotSize
public void setPlotSize(int _plotSizeWidth, int _plotSizeHeight) -
setShowGrid
public void setShowGrid(boolean needShowGrid) -
setShowText
public void setShowText(boolean needShowText) -
setGridLinesNumber
public void setGridLinesNumber(int gridLinesNumber) -
setInvertOrientation
public void setInvertOrientation(boolean _invertOrientation) -
setPointIdxToPrint
public 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.
-
render
-
create
-
create
-
finalize
-