Struct edge_detection::Edge [] [src]

pub struct Edge { /* fields omitted */ }

The computed result for a single pixel.

Methods

impl Edge
[src]

[src]

The direction of the gradient in radians.

This is a convenience function for atan2(direction).

[src]

Returns the direction of the edge scaled by it's magnitude.

[src]

Returns a normalized vector of the direction of the change in brightness

The vector will point away from the detected line. E.g. a vertical line separating a dark area on the left and light area on the right will have it's direction point towards the light area on the right.

[src]

The absolute magnitude of the change in brightness.

Between 0 and 1 inclusive.

Trait Implementations

impl Copy for Edge
[src]

impl Clone for Edge
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Edge
[src]

[src]

Formats the value using the given formatter.