Class for plotting.
More...
#include <func_sketch/plotter/plotter.h>
Class for plotting.
- Note
- This class assumes that the image is in RGB format, not BGR format as in default of OpenCV.
Definition at line 36 of file plotter.h.
◆ Plotter()
Constructor.
- Parameters
-
| [in] | range | Range of plots. |
| [in] | config | Configuration of plots. |
Definition at line 114 of file plotter.cpp.
◆ range()
Set the range of plots.
- Parameters
-
- Returns
- Reference to this object.
Definition at line 117 of file plotter.cpp.
◆ config()
Set the configuration of plots.
- Parameters
-
| [in] | value | Configuration of plots. |
- Returns
- Reference to this object.
Definition at line 122 of file plotter.cpp.
◆ write_background()
| void func_sketch::plotter::Plotter::write_background |
( |
Image & | image | ) |
|
Write background of plots.
- Parameters
-
- Note
- This changes the internal states holding some parameters used in write_curve function.
Definition at line 127 of file plotter.cpp.
◆ write_curve()
| void func_sketch::plotter::Plotter::write_curve |
( |
const std::vector< Point > & | samples, |
|
|
const RGBColor & | color, |
|
|
Image & | image ) |
Write a curve on plots.
- Parameters
-
| [in] | samples | Samples points of the curve. |
| [in] | color | Color of the curve. |
| [in] | image | Image to write. |
- Note
- This function must be called after write_background function because this function uses some parameters computed in write_background function.
Definition at line 146 of file plotter.cpp.
◆ write_grid_lines()
| void func_sketch::plotter::Plotter::write_grid_lines |
( |
Image & | image | ) |
|
|
private |
Write grid lines of plots.
- Parameters
-
Definition at line 194 of file plotter.cpp.
◆ write_x_axis()
| void func_sketch::plotter::Plotter::write_x_axis |
( |
Image & | image | ) |
|
|
private |
◆ write_y_axis()
| void func_sketch::plotter::Plotter::write_y_axis |
( |
Image & | image | ) |
|
|
private |
◆ range_
| PlotRange func_sketch::plotter::Plotter::range_ |
|
private |
◆ config_
Configuration of plots.
Definition at line 112 of file plotter.h.
◆ left_margin_
| int func_sketch::plotter::Plotter::left_margin_ {} |
|
private |
Left margin of plots in pixels. (This value is used over the value in config because tuning of the left margin is needed.).
Definition at line 118 of file plotter.h.
◆ x_axis_ticks_
| AxisTicks func_sketch::plotter::Plotter::x_axis_ticks_ |
|
private |
Ticks of the x-axis.
Definition at line 121 of file plotter.h.
◆ y_axis_ticks_
| AxisTicks func_sketch::plotter::Plotter::y_axis_ticks_ |
|
private |
Ticks of the y-axis.
Definition at line 124 of file plotter.h.
The documentation for this class was generated from the following files: