Struct distance_field::Options
[−]
[src]
pub struct Options { pub size: (u32, u32), pub max_distance: u16, pub image_treshold: u8, }
The options passed as the argument to the distance_field
method.
Fields
size: (u32, u32)
The dimensions of the output image (width, height). The default value is: (64,64).
max_distance: u16
The maximum distance for the projected point of the output image on the input image to search for the nearest point. The defaul value is: 512.
image_treshold: u8
The image value at which to apply the treshold. In a black-white vector image 127 is probably the best value. The default value is: 127.
Trait Implementations
impl Default for Options
[src]
Returns:
Options { size: (64, 64), max_distance: 512, image_treshold: 127 }