Expand description
Functions for mapping over pixels, colors or subpixels of images.
Traits§
- With
Channel - The type obtained by replacing the channel type of a given
Pixel
type. The output type must have the same name of channels as the input type, or several algorithms will produce incorrect results or panic.
Functions§
- as_
blue_ channel - Creates an RGB image by embedding a grayscale image in its blue channel.
- as_
green_ channel - Creates an RGB image by embedding a grayscale image in its green channel.
- as_
red_ channel - Creates an RGB image by embedding a grayscale image in its red channel.
- blue_
channel - Creates a grayscale image by extracting the blue channel of an RGB image.
- green_
channel - Creates a grayscale image by extracting the green channel of an RGB image.
- map_
colors - Applies
f
to the color of each pixel in the input image. - map_
colors2 - Applies
f
to the colors of the pixels in the input images. - map_
colors_ mut - Applies
f
to the color of each pixel in the input image in place. - map_
pixels - Applies
f
to each pixel in the input image. - map_
pixels_ mut - Applies
f
to each pixel in the input image in place. - map_
subpixels - Applies
f
to each subpixel of the input image. - map_
subpixels_ mut - Applies
f
to each subpixel of the input image in place. - red_
channel - Creates a grayscale image by extracting the red channel of an RGB image.
Type Aliases§
- Channel
Map - Alias to make uses of
WithChannel
less syntactically noisy.