mpi.cbg.fly
Class ImageArrayConverter
java.lang.Object
mpi.cbg.fly.ImageArrayConverter
public class ImageArrayConverter
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CUTOFF_VALUES
public static boolean CUTOFF_VALUES
NORM_VALUES
public static boolean NORM_VALUES
ImageArrayConverter
public ImageArrayConverter()
ArrayToFloatArray2D
public static FloatArray2D ArrayToFloatArray2D(int w,
int h,
int[] pixels)
- Parameters:
w - width of the pictureh - height of the picturepixels[] - 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)