public final class ImageTools extends Object
BufferedImage form,
 use the AWTImageTools class.| Modifier | Constructor and Description | 
|---|---|
| private  | ImageTools() | 
| Modifier and Type | Method and Description | 
|---|---|
| static byte[] | autoscale(byte[] b,
         int min,
         int max,
         int bpp,
         boolean little)Perform autoscaling on the given byte array;
 map min to 0 and max to 255. | 
| static void | bgrToRgb(byte[] buf,
        boolean interleaved,
        int bpp,
        int c) | 
| static byte[] | getSubimage(byte[] src,
           byte[] dest,
           int originalWidth,
           int originalHeight,
           int x,
           int y,
           int w,
           int h,
           int bpp,
           int channels,
           boolean interleaved) | 
| static byte[][] | indexedToRGB(byte[][] lut,
            byte[] b)Converts a LUT and an array of indices into an array of RGB tuples. | 
| static short[][] | indexedToRGB(short[][] lut,
            byte[] b,
            boolean le)Converts a LUT and an array of indices into an array of RGB tuples. | 
| static byte[] | interpolate(short[] s,
           byte[] buf,
           int[] bayerPattern,
           int width,
           int height,
           boolean littleEndian) | 
| static int[] | make24Bits(Object pixels,
          int w,
          int h,
          boolean interleaved)Convert an arbitrary primitive type array with 3 samples per pixel to
 an int array, i.e. | 
| static byte[][] | make24Bits(Object pixels,
          int w,
          int h,
          boolean interleaved,
          boolean reverse)Convert an arbitrary primitive type array with 3 samples per pixel to
 a 3 x (width * height) byte array. | 
| static byte[][] | make24Bits(Object pixels,
          int w,
          int h,
          boolean interleaved,
          boolean reverse,
          Double min,
          Double max)Convert an arbitrary primitive type array with 3 samples per pixel to
 a 3 x (width * height) byte array. | 
| static int[] | make24Bits(Object pixels,
          int w,
          int h,
          boolean interleaved,
          Double min,
          Double max)Convert an arbitrary primitive type array with 3 samples per pixel to
 an int array, i.e. | 
| static byte[] | padImage(byte[] b,
        boolean interleaved,
        int c,
        int oldWidth,
        int width,
        int height)Pads (or crops) the byte array to the given width and height. | 
| static double[] | padImage(double[] b,
        boolean interleaved,
        int c,
        int oldWidth,
        int width,
        int height)Pads (or crops) the double array to the given width and height. | 
| static float[] | padImage(float[] b,
        boolean interleaved,
        int c,
        int oldWidth,
        int width,
        int height)Pads (or crops) the float array to the given width and height. | 
| static int[] | padImage(int[] b,
        boolean interleaved,
        int c,
        int oldWidth,
        int width,
        int height)Pads (or crops) the int array to the given width and height. | 
| static short[] | padImage(short[] b,
        boolean interleaved,
        int c,
        int oldWidth,
        int width,
        int height)Pads (or crops) the short array to the given width and height. | 
| static Double[] | scanData(byte[] plane,
        int bits,
        boolean littleEndian)Scan a plane for the channel min and max values. | 
| static byte[] | splitChannels(byte[] array,
             byte[] rtn,
             int index,
             int c,
             int bytes,
             boolean reverse,
             boolean interleaved,
             int channelLength)Splits the given multi-channel array into a 2D array. | 
| static byte[] | splitChannels(byte[] array,
             int index,
             int c,
             int bytes,
             boolean reverse,
             boolean interleaved)Splits the given multi-channel array into a 2D array. | 
public static byte[][] make24Bits(Object pixels, int w, int h, boolean interleaved, boolean reverse)
public static byte[][] make24Bits(Object pixels, int w, int h, boolean interleaved, boolean reverse, Double min, Double max)
public static int[] make24Bits(Object pixels, int w, int h, boolean interleaved)
public static int[] make24Bits(Object pixels, int w, int h, boolean interleaved, Double min, Double max)
public static byte[] splitChannels(byte[] array,
                                   int index,
                                   int c,
                                   int bytes,
                                   boolean reverse,
                                   boolean interleaved)
public static byte[] splitChannels(byte[] array,
                                   byte[] rtn,
                                   int index,
                                   int c,
                                   int bytes,
                                   boolean reverse,
                                   boolean interleaved,
                                   int channelLength)
public static byte[] padImage(byte[] b,
                              boolean interleaved,
                              int c,
                              int oldWidth,
                              int width,
                              int height)
public static short[] padImage(short[] b,
                               boolean interleaved,
                               int c,
                               int oldWidth,
                               int width,
                               int height)
public static int[] padImage(int[] b,
                             boolean interleaved,
                             int c,
                             int oldWidth,
                             int width,
                             int height)
public static float[] padImage(float[] b,
                               boolean interleaved,
                               int c,
                               int oldWidth,
                               int width,
                               int height)
public static double[] padImage(double[] b,
                                boolean interleaved,
                                int c,
                                int oldWidth,
                                int width,
                                int height)
public static byte[] autoscale(byte[] b,
                               int min,
                               int max,
                               int bpp,
                               boolean little)
public static Double[] scanData(byte[] plane, int bits, boolean littleEndian)
public static byte[] getSubimage(byte[] src,
                                 byte[] dest,
                                 int originalWidth,
                                 int originalHeight,
                                 int x,
                                 int y,
                                 int w,
                                 int h,
                                 int bpp,
                                 int channels,
                                 boolean interleaved)
public static byte[][] indexedToRGB(byte[][] lut,
                                    byte[] b)
public static short[][] indexedToRGB(short[][] lut,
                                     byte[] b,
                                     boolean le)
public static byte[] interpolate(short[] s,
                                 byte[] buf,
                                 int[] bayerPattern,
                                 int width,
                                 int height,
                                 boolean littleEndian)
public static void bgrToRgb(byte[] buf,
                            boolean interleaved,
                            int bpp,
                            int c)
Copyright © 2017 Open Microscopy Environment