Skip to main content

MaskVectorizer

Trait MaskVectorizer 

Source
pub trait MaskVectorizer {
    type Options;
    type Output;

    // Required method
    fn vectorize(
        &self,
        mask: &GrayImage,
        options: &Self::Options,
    ) -> OutlineResult<Self::Output>;
}
Expand description

A trait representing an algorithm that can turn a mask into a vector representation.

Required Associated Types§

Source

type Options

Configuration options for the vectorizer.

Source

type Output

The output type produced by the vectorizer.

Required Methods§

Source

fn vectorize( &self, mask: &GrayImage, options: &Self::Options, ) -> OutlineResult<Self::Output>

Convert a grayscale mask into a vector representation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl MaskVectorizer for VtracerSvgVectorizer

Available on crate feature vectorizer-vtracer only.