Struct edge_detection::Detection
[−]
[src]
pub struct Detection { /* fields omitted */ }
The result of a computation.
Methods
impl Detection
[src]
fn width(&self) -> usize
[src]
Returns the width of the computed image.
fn height(&self) -> usize
[src]
Returns the height of the computed image.
fn interpolate(&self, x: f32, y: f32) -> Edge
[src]
Linearly interpolates the edge at the specified location.
Similar to as if the edges detection were continuous.
fn as_image(&self) -> DynamicImage
[src]
Renders the detected edges to an image.
The intensity of the pixel represents the magnitude of the change in brightnes while the color represents the direction.
Useful for debugging.
Trait Implementations
impl Clone for Detection
[src]
fn clone(&self) -> Detection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Index<usize> for Detection
[src]
type Output = Edge
The returned type after indexing.
fn index(&self, index: usize) -> &Self::Output
[src]
Performs the indexing (container[index]
) operation.