[][src]Struct wfc_image::ImagePatterns

pub struct ImagePatterns { /* fields omitted */ }

Methods

impl ImagePatterns[src]

pub fn new(
    image: &DynamicImage,
    pattern_size: NonZeroU32,
    orientations: &[Orientation]
) -> Self
[src]

pub fn set_empty_colour(&mut self, empty_colour: Rgba<u8>)[src]

pub fn image_from_wave(&self, wave: &Wave) -> DynamicImage[src]

pub fn weighted_average_colour<'a>(&self, cell: &'a WaveCellRef<'a>) -> Rgba<u8>[src]

pub fn grid(&self) -> &Grid<Rgba<u8>>[src]

pub fn id_grid(&self) -> Grid<OrientationTable<PatternId>>[src]

pub fn id_grid_original_orientation(&self) -> Grid<PatternId>[src]

pub fn pattern(&self, pattern_id: PatternId) -> &Pattern[src]

pub fn pattern_mut(&mut self, pattern_id: PatternId) -> &mut Pattern[src]

pub fn global_stats(&self) -> GlobalStats[src]

pub fn collapse_wave_retrying<W, F, RT, R>(
    &self,
    output_size: Size,
    wrap: W,
    forbid: F,
    retry: RT,
    rng: &mut R
) -> RT::Return where
    W: Wrap,
    F: ForbidPattern + Send + Sync + Clone,
    RT: Retry,
    R: Rng + Send + Sync + Clone
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,