Module image::imageops

source ·
Expand description

Image Processing Functions

Re-exports§

Modules§

  • Functions for altering and converting the color of pixelbufs

Enums§

Functions§

  • Image sampling Performs a Gaussian blur on the supplied image. sigma is a measure of how much to blur by. Use crate::imageops::fast_blur() for a faster but less accurate version.
  • Return a mutable view into an image The coordinates set the position of the top left corner of the crop.
  • Return an immutable view into an image The coordinates set the position of the top left corner of the crop.
  • Approximation of Gaussian blur after Kovesi, P.: Fast Almost-Gaussian Filtering The Australian Pattern Recognition Society Conference: DICTA 2010. December 2010. Sydney.
  • Image sampling Perform a 3x3 box filter on the supplied image. kernel is an array of the filter weights of length 9.
  • Affine transformations Flip an image horizontally
  • Affine transformations Flip an image horizontally and put the result into the destination ImageBuffer.
  • Affine transformations Flip an image horizontally in place.
  • Affine transformations Flip an image vertically
  • Affine transformations Flip an image vertically and put the result into the destination ImageBuffer.
  • Affine transformations Flip an image vertically in place.
  • Fill the image with a linear horizontal gradient
  • Image sampling Linearly sample from an image using coordinates in [0, w-1] and [0, h-1].
  • Image sampling Sample from an image using coordinates in [0, w-1] and [0, h-1], taking the nearest pixel.
  • Overlay an image at a given coordinate (x, y)
  • Calculate the region that can be copied from top to bottom.
  • Replace the contents of an image at a given coordinate (x, y)
  • Image sampling Resize the supplied image to the specified dimensions. nwidth and nheight are the new dimensions. filter is the sampling filter to use.
  • Affine transformations Rotate an image 90 degrees clockwise.
  • Affine transformations Rotate an image 90 degrees clockwise and put the result into the destination ImageBuffer.
  • Affine transformations Rotate an image 180 degrees clockwise.
  • Affine transformations Rotate an image 180 degrees clockwise and put the result into the destination ImageBuffer.
  • Affine transformations Rotate an image 180 degrees clockwise in place.
  • Affine transformations Rotate an image 270 degrees clockwise.
  • Affine transformations Rotate an image 270 degrees clockwise and put the result into the destination ImageBuffer.
  • Image sampling Linearly sample from an image using coordinates in [0, 1].
  • Image sampling Sample from an image using coordinates in [0, 1], taking the nearest coordinate.
  • Image sampling Resize the supplied image to the specific dimensions.
  • Tile an image by repeating it multiple times
  • Image sampling Performs an unsharpen mask on the supplied image. sigma is the amount to blur the image by. threshold is the threshold for minimal brightness change that will be sharpened.
  • Fill the image with a linear vertical gradient