[][src]Struct opencv::types::PtrOfDownhillSolver

pub struct PtrOfDownhillSolver { /* fields omitted */ }

Methods

impl PtrOfDownhillSolver[src]

pub fn as_raw_PtrOfDownhillSolver(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

Trait Implementations

impl Algorithm for PtrOfDownhillSolver[src]

fn clear(&mut self) -> Result<()>[src]

Clears the algorithm state

fn empty(&self) -> Result<bool>[src]

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

fn save(&self, filename: &str) -> Result<()>[src]

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs). Read more

fn get_default_name(&self) -> Result<String>[src]

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string. Read more

impl DownhillSolver for PtrOfDownhillSolver[src]

fn get_init_step(&self, step: &mut Mat) -> Result<()>[src]

Returns the initial step that will be used in downhill simplex algorithm. Read more

fn set_init_step(&mut self, step: &Mat) -> Result<()>[src]

Sets the initial step that will be used in downhill simplex algorithm. Read more

impl MinProblemSolver for PtrOfDownhillSolver[src]

fn get_function(&self) -> Result<PtrOfFunction>[src]

Getter for the optimized function. Read more

fn set_function(&mut self, f: &PtrOfFunction) -> Result<()>[src]

Setter for the optimized function. Read more

fn get_term_criteria(&self) -> Result<TermCriteria>[src]

Getter for the previously set terminal criteria for this algorithm. Read more

fn set_term_criteria(&mut self, termcrit: &TermCriteria) -> Result<()>[src]

Set terminal criteria for solver. Read more

fn minimize(&mut self, x: &mut Mat) -> Result<f64>[src]

actually runs the algorithm and performs the minimization. Read more

impl Drop for PtrOfDownhillSolver[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]