1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #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 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 render(Mat &_plotResult) = 0;
- };
- CV_EXPORTS_W Ptr<Plot2d> createPlot2d(Mat data);
- CV_EXPORTS_W Ptr<Plot2d> createPlot2d(Mat dataX, Mat dataY);
- }
- }
- #endif
- #endif
|