Module imgproc_rs::transform[][src]

A module for image transformation operations

Functions

crop

Crops an image to a rectangle with upper left corner located at (x, y) with width width and height height

overlay

Aligns the top left corner of front onto the location (x, y) on back and overlays front on back

reflect

Reflects an image across the specified axis

rotate

Rotates an image degrees degrees counterclockwise around the center of the image

scale

Scales an image horizontally by x_factor and vertically by y_factor using the specified method

scale_lanczos

Scales an image using Lanczos resampling with kernel of variable size size

shear

Shears an image

superimpose

Aligns the top left corner of front onto the location (x, y) on back and superimposes the two images with weight alpha for pixel values of back and weight 1 - alpha for pixel values of front

translate

Translates an image to the position with upper left corner located at (x, y). Fills in the rest of the image as black