Expand description
An implementation of seam carving. Currently in a pretty rough state. See examples/seam_carving.rs for an example.
Structs§
- Vertical
Seam - An image seam connecting the bottom of an image to its top (in that order).
Functions§
- draw_
vertical_ seams - Draws a series of
seams
onimage
in red. Assumes that the provided seams were removed in the given order from the input image. - find_
vertical_ seam - Computes an 8-connected path from the bottom of the image to the top whose sum of gradient magnitudes is minimal.
- remove_
vertical_ seam - Returns the result of removing
seam
fromimage
. - shrink_
width - Reduces the width of an image using seam carving.