Trait opencv::hub_prelude::Plot2dTrait

source ·
pub trait Plot2dTrait: AlgorithmTrait + Plot2dTraitConst {
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 impl ToOutputArray) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::plot::Plot2d

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 impl ToOutputArray) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§