Function supercut::masked_cut[][src]

pub fn masked_cut(
    image: &DynamicImage,
    mask: &DynamicImage
) -> ImageBuffer<Rgba<u8>, Vec<u8>>

Apply a luminance mask on an image to alter the Alpha channel. It does not remove or otherwise alter the other channels. If the mask is of different size, it is resized to fit.