123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #ifndef _OPENCV_PLOT_H_
- #define _OPENCV_PLOT_H_
- #ifdef __cplusplus
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace plot
- {
-
-
- class CV_EXPORTS_W Plot2d : public Algorithm
- {
- public:
- CV_WRAP virtual void setMinX(double _plotMinX) = 0;
- CV_WRAP virtual void setMinY(double _plotMinY) = 0;
- CV_WRAP virtual void setMaxX(double _plotMaxX) = 0;
- CV_WRAP virtual void setMaxY(double _plotMaxY) = 0;
- CV_WRAP virtual void setPlotLineWidth(int _plotLineWidth) = 0;
-
- CV_WRAP virtual void setNeedPlotLine(bool _needPlotLine) = 0;
- CV_WRAP virtual void setPlotLineColor(Scalar _plotLineColor) = 0;
- CV_WRAP virtual void setPlotBackgroundColor(Scalar _plotBackgroundColor) = 0;
- CV_WRAP virtual void setPlotAxisColor(Scalar _plotAxisColor) = 0;
- CV_WRAP virtual void setPlotGridColor(Scalar _plotGridColor) = 0;
- CV_WRAP virtual void setPlotTextColor(Scalar _plotTextColor) = 0;
- CV_WRAP virtual void setPlotSize(int _plotSizeWidth, int _plotSizeHeight) = 0;
- CV_WRAP virtual void setShowGrid(bool needShowGrid) = 0;
- CV_WRAP virtual void setShowText(bool needShowText) = 0;
- CV_WRAP virtual void setGridLinesNumber(int gridLinesNumber) = 0;
- CV_WRAP virtual void setInvertOrientation(bool _invertOrientation) = 0;
-
- CV_WRAP virtual void setPointIdxToPrint(int pointIdx) = 0;
- CV_WRAP virtual void render(OutputArray _plotResult) = 0;
-
- CV_WRAP static Ptr<Plot2d> create(InputArray data);
-
- CV_WRAP static Ptr<Plot2d> create(InputArray dataX, InputArray dataY);
- };
-
- }
- }
- #endif
- #endif
|