[][src]Trait opencv::imgproc::prelude::GeneralizedHough

pub trait GeneralizedHough: AlgorithmTrait {
    fn as_raw_GeneralizedHough(&self) -> *const c_void;
fn as_raw_mut_GeneralizedHough(&mut self) -> *mut c_void; fn set_template(
        &mut self,
        templ: &dyn ToInputArray,
        templ_center: Point
    ) -> Result<()> { ... }
fn set_template_1(
        &mut self,
        edges: &dyn ToInputArray,
        dx: &dyn ToInputArray,
        dy: &dyn ToInputArray,
        templ_center: Point
    ) -> Result<()> { ... }
fn detect(
        &mut self,
        image: &dyn ToInputArray,
        positions: &mut dyn ToOutputArray,
        votes: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn detect_with_edges(
        &mut self,
        edges: &dyn ToInputArray,
        dx: &dyn ToInputArray,
        dy: &dyn ToInputArray,
        positions: &mut dyn ToOutputArray,
        votes: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn set_canny_low_thresh(&mut self, canny_low_thresh: i32) -> Result<()> { ... }
fn get_canny_low_thresh(&self) -> Result<i32> { ... }
fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()> { ... }
fn get_canny_high_thresh(&self) -> Result<i32> { ... }
fn set_min_dist(&mut self, min_dist: f64) -> Result<()> { ... }
fn get_min_dist(&self) -> Result<f64> { ... }
fn set_dp(&mut self, dp: f64) -> Result<()> { ... }
fn get_dp(&self) -> Result<f64> { ... }
fn set_max_buffer_size(&mut self, max_buffer_size: i32) -> Result<()> { ... }
fn get_max_buffer_size(&self) -> Result<i32> { ... } }

finds arbitrary template in the grayscale image using Generalized Hough Transform

Required methods

Loading content...

Provided methods

fn set_template(
    &mut self,
    templ: &dyn ToInputArray,
    templ_center: Point
) -> Result<()>

set template to search

C++ default parameters

  • templ_center: Point(-1,-1)

fn set_template_1(
    &mut self,
    edges: &dyn ToInputArray,
    dx: &dyn ToInputArray,
    dy: &dyn ToInputArray,
    templ_center: Point
) -> Result<()>

C++ default parameters

  • templ_center: Point(-1,-1)

fn detect(
    &mut self,
    image: &dyn ToInputArray,
    positions: &mut dyn ToOutputArray,
    votes: &mut dyn ToOutputArray
) -> Result<()>

find template on image

C++ default parameters

  • votes: noArray()

fn detect_with_edges(
    &mut self,
    edges: &dyn ToInputArray,
    dx: &dyn ToInputArray,
    dy: &dyn ToInputArray,
    positions: &mut dyn ToOutputArray,
    votes: &mut dyn ToOutputArray
) -> Result<()>

C++ default parameters

  • votes: noArray()

fn set_canny_low_thresh(&mut self, canny_low_thresh: i32) -> Result<()>

Canny low threshold.

fn get_canny_low_thresh(&self) -> Result<i32>

fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>

Canny high threshold.

fn get_canny_high_thresh(&self) -> Result<i32>

fn set_min_dist(&mut self, min_dist: f64) -> Result<()>

Minimum distance between the centers of the detected objects.

fn get_min_dist(&self) -> Result<f64>

fn set_dp(&mut self, dp: f64) -> Result<()>

Inverse ratio of the accumulator resolution to the image resolution.

fn get_dp(&self) -> Result<f64>

fn set_max_buffer_size(&mut self, max_buffer_size: i32) -> Result<()>

Maximal size of inner buffers.

fn get_max_buffer_size(&self) -> Result<i32>

Loading content...

Implementors

Loading content...