mpi.cbg.fly
Class ImageArrayConverter

java.lang.Object
  extended by mpi.cbg.fly.ImageArrayConverter

public class ImageArrayConverter
extends java.lang.Object


Field Summary
static boolean CUTOFF_VALUES
           
static boolean NORM_VALUES
           
 
Constructor Summary
ImageArrayConverter()
           
 
Method Summary
static FloatArray2D ArrayToFloatArray2D(int w, int h, int[] pixels)
           
static void FloatArrayToFloatProcessor(java.awt.Image ip, FloatArray2D pixels)
           
static FloatArray2D ImageToFloatArray2D(java.awt.Image ip)
           
static void normPixelValuesToByte(float[][] pixels, boolean cutoff)
           
static void normPixelValuesToByte(int[][] pixels, boolean cutoff)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUTOFF_VALUES

public static boolean CUTOFF_VALUES

NORM_VALUES

public static boolean NORM_VALUES
Constructor Detail

ImageArrayConverter

public ImageArrayConverter()
Method Detail

ArrayToFloatArray2D

public static FloatArray2D ArrayToFloatArray2D(int w,
                                               int h,
                                               int[] pixels)
Parameters:
w - width of the picture
h - height of the picture
pixels[] - tab of pixels RGB color (ex: red 0xff0000)
Returns:
picture with the type FloatArray2D

ImageToFloatArray2D

public static FloatArray2D ImageToFloatArray2D(java.awt.Image ip)
Parameters:
ip - picture to convert
Returns:
picture with the type FloatArray2D

FloatArrayToFloatProcessor

public static void FloatArrayToFloatProcessor(java.awt.Image ip,
                                              FloatArray2D pixels)

normPixelValuesToByte

public static void normPixelValuesToByte(int[][] pixels,
                                         boolean cutoff)

normPixelValuesToByte

public static void normPixelValuesToByte(float[][] pixels,
                                         boolean cutoff)