Package carve implements the seam carving algorithm for dyanmic image resizing.
GenerateCostMatrix creates a matrix indicating the cumulative energy of the lowest cost seam from the left of the image to each pixel.
mat[x][y] is the cumulative energy of the seam that runs from the left of the image to the pixel at column x, row y.
GenerateEnergyMap applies grayscale and sobel filters to the input image to create an energy map.
ReduceHeight uses seam carving to reduce height of given image by n pixels.
ReduceWidth uses seam carving to reduce width of given image by n pixels.
RemoveSeam creates a copy of the provided image, with the pixels at the points in the provided seam removed.
Point defines an X Y point in an image.
Seam defines a sequence of pixels through an image to be removed.
FindLowestCostSeam uses a cumulative cost matrix to identify the seam with the lowest total cumulative energy.
GenerateSeam returns the optimal horizontal seam for removal.