|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectImageProcessing
public class ImageProcessing
A collection of image processing utilities
| Constructor Summary | |
|---|---|
ImageProcessing()
|
|
| Method Summary | |
|---|---|
static int[][] |
flipX(int[][] imageData)
Flip the image relative to the X axis |
static int[][] |
flipY(int[][] imageData)
Flip the image relative to the Y axis |
static int[] |
histogram(int[][] imageData)
Returns a histogram of the given gray-scaled image. |
static int[][] |
invert(int[][] imageData)
Inverts the gray levels of the image. 0 will turn to 255, 1 to 254 and so on... |
static void |
main(java.lang.String[] args)
|
static int[][] |
rotate90CCW(int[][] imageData)
Rotate the image 90 degrees counter clockwise |
static int[][] |
rotate90CW(int[][] imageData)
Rotate the image 90 degrees clockwise |
static int[][] |
toBW(int[][] imageData,
int threshold)
Transforms the image into a black and white one |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageProcessing()
| Method Detail |
|---|
public static int[][] flipX(int[][] imageData)
imageData - - 2-dimensional array holding the image data
public static int[][] flipY(int[][] imageData)
imageData - - 2-dimensional array holding the image data
public static int[] histogram(int[][] imageData)
imageData - - 2-dimensional array holding the image data
public static int[][] invert(int[][] imageData)
imageData - - 2-dimensional array holding the image data
public static int[][] rotate90CCW(int[][] imageData)
imageData - - 2-dimensional array holding the image data
public static int[][] rotate90CW(int[][] imageData)
imageData - - 2-dimensional array holding the image data
public static int[][] toBW(int[][] imageData,
int threshold)
imageData - - 2-dimensional array holding the image datathreshold - - a cutoff value underneath a pixel's becomes black (0),
otherwise that pixel becomes white (255)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||