Trait opencv::prelude::Plot2d

source ·
pub trait Plot2d: AlgorithmTrait + Plot2dConst {
Show 19 methods // Required method fn as_raw_mut_Plot2d(&mut self) -> *mut c_void; // Provided methods fn set_min_x(&mut self, _plot_min_x: f64) -> Result<()> { ... } fn set_min_y(&mut self, _plot_min_y: f64) -> Result<()> { ... } fn set_max_x(&mut self, _plot_max_x: f64) -> Result<()> { ... } fn set_max_y(&mut self, _plot_max_y: f64) -> Result<()> { ... } fn set_plot_line_width(&mut self, _plot_line_width: i32) -> Result<()> { ... } fn set_need_plot_line(&mut self, _need_plot_line: bool) -> Result<()> { ... } fn set_plot_line_color(&mut self, _plot_line_color: Scalar) -> Result<()> { ... } fn set_plot_background_color( &mut self, _plot_background_color: Scalar ) -> Result<()> { ... } fn set_plot_axis_color(&mut self, _plot_axis_color: Scalar) -> Result<()> { ... } fn set_plot_grid_color(&mut self, _plot_grid_color: Scalar) -> Result<()> { ... } fn set_plot_text_color(&mut self, _plot_text_color: Scalar) -> Result<()> { ... } fn set_plot_size( &mut self, _plot_size_width: i32, _plot_size_height: i32 ) -> Result<()> { ... } fn set_show_grid(&mut self, need_show_grid: bool) -> Result<()> { ... } fn set_show_text(&mut self, need_show_text: bool) -> Result<()> { ... } fn set_grid_lines_number(&mut self, grid_lines_number: i32) -> Result<()> { ... } fn set_invert_orientation(&mut self, _invert_orientation: bool) -> Result<()> { ... } fn set_point_idx_to_print(&mut self, point_idx: i32) -> Result<()> { ... } fn render(&mut self, _plot_result: &mut dyn ToOutputArray) -> Result<()> { ... }
}

Required Methods§

Provided Methods§

source

fn set_min_x(&mut self, _plot_min_x: f64) -> Result<()>

source

fn set_min_y(&mut self, _plot_min_y: f64) -> Result<()>

source

fn set_max_x(&mut self, _plot_max_x: f64) -> Result<()>

source

fn set_max_y(&mut self, _plot_max_y: f64) -> Result<()>

source

fn set_plot_line_width(&mut self, _plot_line_width: i32) -> Result<()>

source

fn set_need_plot_line(&mut self, _need_plot_line: bool) -> Result<()>

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.
source

fn set_plot_line_color(&mut self, _plot_line_color: Scalar) -> Result<()>

source

fn set_plot_background_color( &mut self, _plot_background_color: Scalar ) -> Result<()>

source

fn set_plot_axis_color(&mut self, _plot_axis_color: Scalar) -> Result<()>

source

fn set_plot_grid_color(&mut self, _plot_grid_color: Scalar) -> Result<()>

source

fn set_plot_text_color(&mut self, _plot_text_color: Scalar) -> Result<()>

source

fn set_plot_size( &mut self, _plot_size_width: i32, _plot_size_height: i32 ) -> Result<()>

source

fn set_show_grid(&mut self, need_show_grid: bool) -> Result<()>

source

fn set_show_text(&mut self, need_show_text: bool) -> Result<()>

source

fn set_grid_lines_number(&mut self, grid_lines_number: i32) -> Result<()>

source

fn set_invert_orientation(&mut self, _invert_orientation: bool) -> Result<()>

source

fn set_point_idx_to_print(&mut self, point_idx: i32) -> Result<()>

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.
source

fn render(&mut self, _plot_result: &mut dyn ToOutputArray) -> Result<()>

Implementations§

source§

impl dyn Plot2d + '_

source

pub fn create(data: &dyn ToInputArray) -> Result<Ptr<dyn Plot2d>>

Creates Plot2d object

Parameters
  • data: inline formula or inline formula matrix containing inline formula values of points to plot. inline formula values will be equal to indexes of correspondind elements in data matrix.
source

pub fn create_1( data_x: &dyn ToInputArray, data_y: &dyn ToInputArray ) -> Result<Ptr<dyn Plot2d>>

Creates Plot2d object

Parameters
  • dataX: inline formula or inline formula matrix inline formula values of points to plot.
  • dataY: inline formula or inline formula matrix containing inline formula values of points to plot.

Implementors§

source§

impl Plot2d for Ptr<dyn Plot2d>