mpi.fruitfly.general
Class ImageArrayConverter

java.lang.Object
  extended by mpi.fruitfly.general.ImageArrayConverter

public class ImageArrayConverter
extends java.lang.Object


Field Summary
static boolean CUTOFF_VALUES
           
static int DRAWTYPE_ERRORMAP
           
static int DRAWTYPE_OVERLAP
           
static boolean NORM_VALUES
           
 
Constructor Summary
ImageArrayConverter()
           
 
Method Summary
static void ArrayToByteProcessor(ij.process.ImageProcessor ip, float[][] pixels)
           
static void ArrayToByteProcessor(ij.process.ImageProcessor ip, int[][] pixels)
           
static void ArrayToFloatProcessor(ij.process.ImageProcessor ip, double[] pixels, int width, int height)
           
static void ArrayToFloatProcessor(ij.process.ImageProcessor ip, float[] pixels, int width, int height)
           
static ij.ImagePlus DoubleArrayToStack(double[] image, int width, int height, int nstacks, java.lang.String name, float min, float max)
           
static FloatArray2D drawTranslatedImages(FloatArray2D img1, FloatArray2D img2, java.awt.Point shift, int drawType)
           
static void FloatArrayToFloatProcessor(ij.process.ImageProcessor ip, FloatArray2D pixels)
           
static ij.ImagePlus FloatArrayToImagePlus(FloatArray2D image, java.lang.String name, float min, float max)
           
static ij.ImagePlus FloatArrayToStack(FloatArray3D image, java.lang.String name, float min, float max)
           
static double[] ImageToDoubleArray1D(ij.process.ImageProcessor ip)
           
static double[] ImageToDoubleArray1DZeroPadding(ij.process.ImageProcessor ip, int width, int height)
           
static FloatArray2D ImageToFloatArray2D(ij.process.ImageProcessor ip)
           
static float[][] ImageToFloatArray2DDeprecated(ij.process.ImageProcessor ip)
           
static FloatArray2D ImageToFloatArray2DZeroPadding(ij.process.ImageProcessor ip, int width, int height)
           
static int[][] ImageToIntArray(ij.process.ImageProcessor ip)
           
static void normFloatArray(FloatArray img)
           
static void normPixelValuesToByte(float[][][] pixels, boolean cutoff)
           
static void normPixelValuesToByte(float[][] pixels, boolean cutoff)
           
static void normPixelValuesToByte(int[][] pixels, boolean cutoff)
           
static double[] StackToDoubleArray1D(ij.ImageStack stack)
           
static double[] StackToDoubleArrayZeroPadding(ij.ImageStack stack, int wZP, int hZP, int dZP)
           
static FloatArray3D StackToFloatArray(ij.ImageStack stack)
           
static FloatArray4D StackToFloatArrayComplex(ij.ImageStack stack)
           
static FloatArray4D StackToFloatArrayComplexZeroPadding(ij.ImageStack stack, int wZP, int hZP, int dZP)
           
static float[][][] StackToFloatArrayDeprecated(ij.ImageStack stack)
           
static FloatArray3D StackToFloatArrayZeroPadding(ij.ImageStack stack, int wZP, int hZP, int dZP)
           
static FloatArray2D zeroPad(FloatArray2D ip, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUTOFF_VALUES

public static boolean CUTOFF_VALUES

NORM_VALUES

public static boolean NORM_VALUES

DRAWTYPE_OVERLAP

public static int DRAWTYPE_OVERLAP

DRAWTYPE_ERRORMAP

public static int DRAWTYPE_ERRORMAP
Constructor Detail

ImageArrayConverter

public ImageArrayConverter()
Method Detail

FloatArrayToImagePlus

public static ij.ImagePlus FloatArrayToImagePlus(FloatArray2D image,
                                                 java.lang.String name,
                                                 float min,
                                                 float max)

FloatArrayToStack

public static ij.ImagePlus FloatArrayToStack(FloatArray3D image,
                                             java.lang.String name,
                                             float min,
                                             float max)

DoubleArrayToStack

public static ij.ImagePlus DoubleArrayToStack(double[] image,
                                              int width,
                                              int height,
                                              int nstacks,
                                              java.lang.String name,
                                              float min,
                                              float max)

StackToFloatArrayZeroPadding

public static FloatArray3D StackToFloatArrayZeroPadding(ij.ImageStack stack,
                                                        int wZP,
                                                        int hZP,
                                                        int dZP)

StackToFloatArrayComplexZeroPadding

public static FloatArray4D StackToFloatArrayComplexZeroPadding(ij.ImageStack stack,
                                                               int wZP,
                                                               int hZP,
                                                               int dZP)

StackToDoubleArrayZeroPadding

public static double[] StackToDoubleArrayZeroPadding(ij.ImageStack stack,
                                                     int wZP,
                                                     int hZP,
                                                     int dZP)

StackToDoubleArray1D

public static double[] StackToDoubleArray1D(ij.ImageStack stack)

StackToFloatArray

public static FloatArray3D StackToFloatArray(ij.ImageStack stack)

StackToFloatArrayDeprecated

public static float[][][] StackToFloatArrayDeprecated(ij.ImageStack stack)

StackToFloatArrayComplex

public static FloatArray4D StackToFloatArrayComplex(ij.ImageStack stack)

ImageToIntArray

public static int[][] ImageToIntArray(ij.process.ImageProcessor ip)

ImageToFloatArray2DDeprecated

public static float[][] ImageToFloatArray2DDeprecated(ij.process.ImageProcessor ip)

ImageToDoubleArray1D

public static double[] ImageToDoubleArray1D(ij.process.ImageProcessor ip)

ImageToFloatArray2D

public static FloatArray2D ImageToFloatArray2D(ij.process.ImageProcessor ip)

normFloatArray

public static void normFloatArray(FloatArray img)

drawTranslatedImages

public static FloatArray2D drawTranslatedImages(FloatArray2D img1,
                                                FloatArray2D img2,
                                                java.awt.Point shift,
                                                int drawType)

zeroPad

public static FloatArray2D zeroPad(FloatArray2D ip,
                                   int width,
                                   int height)

ImageToFloatArray2DZeroPadding

public static FloatArray2D ImageToFloatArray2DZeroPadding(ij.process.ImageProcessor ip,
                                                          int width,
                                                          int height)

ImageToDoubleArray1DZeroPadding

public static double[] ImageToDoubleArray1DZeroPadding(ij.process.ImageProcessor ip,
                                                       int width,
                                                       int height)

ArrayToByteProcessor

public static void ArrayToByteProcessor(ij.process.ImageProcessor ip,
                                        int[][] pixels)

ArrayToByteProcessor

public static void ArrayToByteProcessor(ij.process.ImageProcessor ip,
                                        float[][] pixels)

ArrayToFloatProcessor

public static void ArrayToFloatProcessor(ij.process.ImageProcessor ip,
                                         double[] pixels,
                                         int width,
                                         int height)

ArrayToFloatProcessor

public static void ArrayToFloatProcessor(ij.process.ImageProcessor ip,
                                         float[] pixels,
                                         int width,
                                         int height)

FloatArrayToFloatProcessor

public static void FloatArrayToFloatProcessor(ij.process.ImageProcessor ip,
                                              FloatArray2D pixels)

normPixelValuesToByte

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

normPixelValuesToByte

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

normPixelValuesToByte

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