public class ImageArrayConverter
extends java.lang.Object
Title: ImageArrayConverter
Description:
Copyright: Copyright (c) 2006
Company:
Modifier and Type | Field and Description |
---|---|
static boolean |
CUTOFF_VALUES |
static boolean |
NORM_VALUES |
Constructor and Description |
---|
ImageArrayConverter() |
Modifier and Type | Method and Description |
---|---|
static FloatArray2D |
ArrayToFloatArray2D(int w,
int h,
int[] pixels) |
static void |
normPixelValuesToByte(float[][] pixels,
boolean cutoff) |
static void |
normPixelValuesToByte(int[][] pixels,
boolean cutoff) |
public static boolean CUTOFF_VALUES
public static boolean NORM_VALUES
public static FloatArray2D ArrayToFloatArray2D(int w, int h, int[] pixels)
w
- width of the pictureh
- height of the picturepixels[]
- tab of pixels RGB color (ex: red 0xff0000)public static void normPixelValuesToByte(int[][] pixels, boolean cutoff)
public static void normPixelValuesToByte(float[][] pixels, boolean cutoff)