All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ij.process.ColorProcessor

java.lang.Object
   |
   +----ij.process.ImageProcessor
           |
           +----ij.process.ColorProcessor

public class ColorProcessor
extends ImageProcessor
Processes RGB images. Based on the ImageProcessor class from "KickAss Java Programming" by Tonny Espeset (http://www.sn.no/~espeset)


Constructor Index

 o ColorProcessor(Image)
 o ColorProcessor(Image, ProgressBar)
 o ColorProcessor(int, int, byte[], byte[], byte[])
Creates a ColorProcessor from hue, saturation and brightness byte arrays.
 o ColorProcessor(int, int, byte[], byte[], byte[], byte[])
Creates a ColorProcessor from red, green, blue and alpha byte arrays.

Method Index

 o autoThreshold()
 o createImage()
 o crop()
 o fill()
 o findEdges()
 o flipHorizontal()
 o flipVertical()
 o getColor(int, int)
 o getHistogram()
 o getHistogram(int[])
 o getHSB(byte[], byte[], byte[], double, double)
Returns hue, saturation and brightness in 3 byte arrays.
 o getPixel(int, int)
 o getPixels()
 o getRGBA(byte[], byte[], byte[], byte[], double, double)
Returns red, green, blue and alpha in 4 byte arrays.
 o insert(ImageProcessor, int, int)
 o medianFilter()
 o noise(double)
 o putPixel(int, int)
 o reset()
 o reset(int[])
 o rotate(double)
 o scale(double, double, boolean)
 o setHSB(byte[], byte[], byte[], double, double)
Sets the current pixels from 3 byte arrays (hue, saturation and brightness).
 o setRGBA(byte[], byte[], byte[], byte[], double, double)
Sets the current pixels from 4 byte arrays (reg, green, blue and alpha).
 o sharpen()
 o smooth()
 o snapshot()

Constructors

 o ColorProcessor
 public ColorProcessor(Image img)
 o ColorProcessor
 public ColorProcessor(Image img,
                       ProgressBar bar)
 o ColorProcessor
 public ColorProcessor(int width,
                       int height,
                       byte R[],
                       byte G[],
                       byte B[],
                       byte A[])
Creates a ColorProcessor from red, green, blue and alpha byte arrays.

 o ColorProcessor
 public ColorProcessor(int width,
                       int height,
                       byte H[],
                       byte S[],
                       byte B[])
Creates a ColorProcessor from hue, saturation and brightness byte arrays.

Methods

 o createImage
 public Image createImage()
Overrides:
createImage in class ImageProcessor
 o crop
 public Image crop()
Overrides:
crop in class ImageProcessor
 o getColor
 public Color getColor(int x,
                       int y)
 o snapshot
 public void snapshot()
Overrides:
snapshot in class ImageProcessor
 o reset
 public void reset()
Overrides:
reset in class ImageProcessor
 o reset
 public void reset(int mask[])
Overrides:
reset in class ImageProcessor
 o getPixel
 public float getPixel(int x,
                       int y)
Overrides:
getPixel in class ImageProcessor
 o putPixel
 public void putPixel(int x,
                      int y)
Overrides:
putPixel in class ImageProcessor
 o getPixels
 public Object getPixels()
Overrides:
getPixels in class ImageProcessor
 o getHSB
 public void getHSB(byte H[],
                    byte S[],
                    byte B[],
                    double pStart,
                    double pWidth)
Returns hue, saturation and brightness in 3 byte arrays.

 o getRGBA
 public void getRGBA(byte R[],
                     byte G[],
                     byte B[],
                     byte A[],
                     double pStart,
                     double pWidth)
Returns red, green, blue and alpha in 4 byte arrays.

 o setRGBA
 public void setRGBA(byte R[],
                     byte G[],
                     byte B[],
                     byte A[],
                     double pStart,
                     double pWidth)
Sets the current pixels from 4 byte arrays (reg, green, blue and alpha).

 o setHSB
 public void setHSB(byte H[],
                    byte S[],
                    byte B[],
                    double pStart,
                    double pWidth)
Sets the current pixels from 3 byte arrays (hue, saturation and brightness).

 o insert
 public void insert(ImageProcessor ip,
                    int xloc,
                    int yloc)
Overrides:
insert in class ImageProcessor
 o fill
 public void fill()
Overrides:
fill in class ImageProcessor
 o noise
 public void noise(double range)
Overrides:
noise in class ImageProcessor
 o scale
 public void scale(double xScale,
                   double yScale,
                   boolean resizeImage)
Overrides:
scale in class ImageProcessor
 o rotate
 public void rotate(double angle)
Overrides:
rotate in class ImageProcessor
 o flipVertical
 public void flipVertical()
Overrides:
flipVertical in class ImageProcessor
 o flipHorizontal
 public void flipHorizontal()
Overrides:
flipHorizontal in class ImageProcessor
 o smooth
 public void smooth()
Overrides:
smooth in class ImageProcessor
 o sharpen
 public void sharpen()
Overrides:
sharpen in class ImageProcessor
 o findEdges
 public void findEdges()
Overrides:
findEdges in class ImageProcessor
 o autoThreshold
 public void autoThreshold()
Overrides:
autoThreshold in class ImageProcessor
 o medianFilter
 public void medianFilter()
Overrides:
medianFilter in class ImageProcessor
 o getHistogram
 public int[] getHistogram()
Overrides:
getHistogram in class ImageProcessor
 o getHistogram
 public int[] getHistogram(int mask[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index