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)
-
ColorProcessor(Image)
-
-
ColorProcessor(Image, ProgressBar)
-
-
ColorProcessor(int, int, byte[], byte[], byte[])
- Creates a ColorProcessor from hue, saturation and brightness byte arrays.
-
ColorProcessor(int, int, byte[], byte[], byte[], byte[])
- Creates a ColorProcessor from red, green, blue and alpha byte arrays.
-
autoThreshold()
-
-
createImage()
-
-
crop()
-
-
fill()
-
-
findEdges()
-
-
flipHorizontal()
-
-
flipVertical()
-
-
getColor(int, int)
-
-
getHistogram()
-
-
getHistogram(int[])
-
-
getHSB(byte[], byte[], byte[], double, double)
- Returns hue, saturation and brightness in 3 byte arrays.
-
getPixel(int, int)
-
-
getPixels()
-
-
getRGBA(byte[], byte[], byte[], byte[], double, double)
- Returns red, green, blue and alpha in 4 byte arrays.
-
insert(ImageProcessor, int, int)
-
-
medianFilter()
-
-
noise(double)
-
-
putPixel(int, int)
-
-
reset()
-
-
reset(int[])
-
-
rotate(double)
-
-
scale(double, double, boolean)
-
-
setHSB(byte[], byte[], byte[], double, double)
- Sets the current pixels from 3 byte arrays (hue, saturation and brightness).
-
setRGBA(byte[], byte[], byte[], byte[], double, double)
- Sets the current pixels from 4 byte arrays (reg, green, blue and alpha).
-
sharpen()
-
-
smooth()
-
-
snapshot()
-
ColorProcessor
public ColorProcessor(Image img)
ColorProcessor
public ColorProcessor(Image img,
ProgressBar bar)
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.
ColorProcessor
public ColorProcessor(int width,
int height,
byte H[],
byte S[],
byte B[])
- Creates a ColorProcessor from hue, saturation and brightness byte arrays.
createImage
public Image createImage()
- Overrides:
- createImage in class ImageProcessor
crop
public Image crop()
- Overrides:
- crop in class ImageProcessor
getColor
public Color getColor(int x,
int y)
snapshot
public void snapshot()
- Overrides:
- snapshot in class ImageProcessor
reset
public void reset()
- Overrides:
- reset in class ImageProcessor
reset
public void reset(int mask[])
- Overrides:
- reset in class ImageProcessor
getPixel
public float getPixel(int x,
int y)
- Overrides:
- getPixel in class ImageProcessor
putPixel
public void putPixel(int x,
int y)
- Overrides:
- putPixel in class ImageProcessor
getPixels
public Object getPixels()
- Overrides:
- getPixels in class ImageProcessor
getHSB
public void getHSB(byte H[],
byte S[],
byte B[],
double pStart,
double pWidth)
- Returns hue, saturation and brightness in 3 byte arrays.
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.
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).
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).
insert
public void insert(ImageProcessor ip,
int xloc,
int yloc)
- Overrides:
- insert in class ImageProcessor
fill
public void fill()
- Overrides:
- fill in class ImageProcessor
noise
public void noise(double range)
- Overrides:
- noise in class ImageProcessor
scale
public void scale(double xScale,
double yScale,
boolean resizeImage)
- Overrides:
- scale in class ImageProcessor
rotate
public void rotate(double angle)
- Overrides:
- rotate in class ImageProcessor
flipVertical
public void flipVertical()
- Overrides:
- flipVertical in class ImageProcessor
flipHorizontal
public void flipHorizontal()
- Overrides:
- flipHorizontal in class ImageProcessor
smooth
public void smooth()
- Overrides:
- smooth in class ImageProcessor
sharpen
public void sharpen()
- Overrides:
- sharpen in class ImageProcessor
findEdges
public void findEdges()
- Overrides:
- findEdges in class ImageProcessor
autoThreshold
public void autoThreshold()
- Overrides:
- autoThreshold in class ImageProcessor
medianFilter
public void medianFilter()
- Overrides:
- medianFilter in class ImageProcessor
getHistogram
public int[] getHistogram()
- Overrides:
- getHistogram in class ImageProcessor
getHistogram
public int[] getHistogram(int mask[])
All Packages Class Hierarchy This Package Previous Next Index