|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ImageMods
Class containing methods to manipulate and modify TwoDArray images.
Constructor Summary | |
ImageMods()
Default no-args constructor. |
Method Summary | |
static double[] |
abs(double[] values)
Method to convert an array of doubles to absolute values. |
static double[] |
allPositive(double[] values)
Method to slide and scale an array of doubles so that the minimum values is 0 (all positive). |
static double[] |
logs(double[] values)
A method to convert an array of doubles to an array of their log values. |
static double |
maxValue(double[] values)
Method to find the maximum value from an array of doubles. |
static double |
minValue(double[] values)
Method to find the minimum value from an array of doubles. |
static int[] |
toPixels(double[] values)
A method to convert an array of grey values to an array of pixel values. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ImageMods()
Method Detail |
public static double maxValue(double[] values)
values
- an array of doubles.public static double minValue(double[] values)
values
- an array of doubles.public static double[] abs(double[] values)
values
- an array of doubles.public static double[] allPositive(double[] values)
values
- An array of doubles.public static int[] toPixels(double[] values)
values
- An array of grey values (all positive).public static double[] logs(double[] values)
values
- An array of doubles (all positive).
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |