Documentation ¶
Overview ¶
Package image implements a simple library for image operations. The library can work with pngs or jpgs. Same functions can be used for both of those image types.
Index ¶
Constants ¶
const ( GrayscaleAverage = 0 GrayscaleLuma = 1 GrayscaleDesaturation = 2 )
GrayscaleAverage, GrayscaleLuma, GrayscaleDesaturation are used by grayscale to choose between algorithms
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { Pixels [][]Pixel Width int Height int // contains filtered or unexported fields }
Image is the main object that holds information about the image file. Also is a wrapper around the decoded image from the standard image library.
func RemoveMovingObj ¶
RemoveMovingObj iterates the given filepaths and generates new image objects. It then checks to see if all the heights and the widths of the images are matching. If they are, each pixel of every image is iterated and a median filter is applied to given images. Returns the output image object and an error if there is any.
func (*Image) Filter ¶
Filter with "R", "G" or "B" values. Increase the given r/g/b values of pixel by the given percentage.
func (*Image) WriteToFile ¶
WriteToFile writes iamges to the given filepath. Returns an error if it occurs.