package com.marcodinacci.android.commons;
public interface AndroidImage {
/** Convert the image to grayscale. In place. */
public abstract AndroidImage toGrayscale();
/** Erode the image. In place. */
public abstract AndroidImage erode(int erosionLevel);
/** Morph the current image with another one. In place.
**/
public abstract AndroidImage morph(AndroidImage background, int value);
/** Check whether the current image is different from the given image.
* A pixel is different if pixel_value - 3 < pixel_threshold < pixel_value + 3
* An image is different if the total of different pixels is > than threshold.
* */
public abstract boolean isDifferent(AndroidImage background, int pixel_threshold,
int threshold);
/** Access the low level data of the image. Data layout is
* implementation dependent
* */
public abstract byte[] get();
}