Module imageproc::map

source ·
Expand description

Functions for mapping over pixels, colors or subpixels of images.

Traits§

  • 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§

  • Creates an RGB image by embedding a grayscale image in its blue channel.
  • Creates an RGB image by embedding a grayscale image in its green channel.
  • Creates an RGB image by embedding a grayscale image in its red channel.
  • Creates a grayscale image by extracting the blue channel of an RGB image.
  • Creates a grayscale image by extracting the green channel of an RGB image.
  • Applies f to the color of each pixel in the input image.
  • Applies f to the colors of the pixels in the input images.
  • Applies f to the color of each pixel in the input image in place.
  • Applies f to each pixel in the input image.
  • Applies f to each pixel in the input image in place.
  • Applies f to each subpixel of the input image.
  • Applies f to each subpixel of the input image in place.
  • Creates a grayscale image by extracting the red channel of an RGB image.

Type Aliases§

  • Alias to make uses of WithChannel less syntactically noisy.