[][src]Trait opencv::cudaimgproc::prelude::CUDA_HoughLinesDetector

pub trait CUDA_HoughLinesDetector: AlgorithmTrait {
    pub fn as_raw_CUDA_HoughLinesDetector(&self) -> *const c_void;
pub fn as_raw_mut_CUDA_HoughLinesDetector(&mut self) -> *mut c_void; pub fn detect(
        &mut self,
        src: &dyn ToInputArray,
        lines: &mut dyn ToOutputArray,
        stream: &mut Stream
    ) -> Result<()> { ... }
pub fn download_results(
        &mut self,
        d_lines: &dyn ToInputArray,
        h_lines: &mut dyn ToOutputArray,
        h_votes: &mut dyn ToOutputArray,
        stream: &mut Stream
    ) -> Result<()> { ... }
pub fn set_rho(&mut self, rho: f32) -> Result<()> { ... }
pub fn get_rho(&self) -> Result<f32> { ... }
pub fn set_theta(&mut self, theta: f32) -> Result<()> { ... }
pub fn get_theta(&self) -> Result<f32> { ... }
pub fn set_threshold(&mut self, threshold: i32) -> Result<()> { ... }
pub fn get_threshold(&self) -> Result<i32> { ... }
pub fn set_do_sort(&mut self, do_sort: bool) -> Result<()> { ... }
pub fn get_do_sort(&self) -> Result<bool> { ... }
pub fn set_max_lines(&mut self, max_lines: i32) -> Result<()> { ... }
pub fn get_max_lines(&self) -> Result<i32> { ... } }

Base class for lines detector algorithm. :

Required methods

Loading content...

Provided methods

pub fn detect(
    &mut self,
    src: &dyn ToInputArray,
    lines: &mut dyn ToOutputArray,
    stream: &mut Stream
) -> Result<()>
[src]

Finds lines in a binary image using the classical Hough transform.

Parameters

  • src: 8-bit, single-channel binary source image.
  • lines: Output vector of lines. Each line is represented by a two-element vector inline formula . inline formula is the distance from the coordinate origin inline formula (top-left corner of the image). inline formula is the line rotation angle in radians ( inline formula ).
  • stream: Stream for the asynchronous version.

See also

HoughLines

C++ default parameters

  • stream: Stream::Null()

pub fn download_results(
    &mut self,
    d_lines: &dyn ToInputArray,
    h_lines: &mut dyn ToOutputArray,
    h_votes: &mut dyn ToOutputArray,
    stream: &mut Stream
) -> Result<()>
[src]

Downloads results from cuda::HoughLinesDetector::detect to host memory.

Parameters

  • d_lines: Result of cuda::HoughLinesDetector::detect .
  • h_lines: Output host array.
  • h_votes: Optional output array for line's votes.
  • stream: Stream for the asynchronous version.

C++ default parameters

  • h_votes: noArray()
  • stream: Stream::Null()

pub fn set_rho(&mut self, rho: f32) -> Result<()>[src]

pub fn get_rho(&self) -> Result<f32>[src]

pub fn set_theta(&mut self, theta: f32) -> Result<()>[src]

pub fn get_theta(&self) -> Result<f32>[src]

pub fn set_threshold(&mut self, threshold: i32) -> Result<()>[src]

pub fn get_threshold(&self) -> Result<i32>[src]

pub fn set_do_sort(&mut self, do_sort: bool) -> Result<()>[src]

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

pub fn set_max_lines(&mut self, max_lines: i32) -> Result<()>[src]

pub fn get_max_lines(&self) -> Result<i32>[src]

Loading content...

Implementors

Loading content...