Classes, interfaces and traits

CropFace

CropFace

This class will try to find the most interesting point in the image by trying to find a face and center the crop on that
« More »

CropCenter

CropCenter

The most basic of cropping techniques: 1. Find the exact center of the image 2. Trim any edges that is bigger than the targetWidth and targetHeight
« More »

Crop

Base class for all Croppers

« More »

CropBalanced

CropBalanced

This class calculates the most interesting point in the image by: 1. Dividing the image into four equally squares 2. Find the most energetic point per square 3. Finding the images weighted mean interest point
« More »

CropEntropy

CropEntropy

This class finds the a position in the picture with the most energy in it. Energy is in this case calculated by this 1. Take the image and turn it into black and white 2. Run a edge filter so that we're left with only edges. 3. Find a piece in the picture that has the highest entropy (i.e. most edges) 4. Return coordinates that makes sure that this piece of the picture is not cropped 'away'
« More »