|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--ij.process.ImageProcessor
|
+--ij.process.ShortProcessor
Objects of the class contain a 16-bit unsigned image (short) and methods that operate on that image.
| Fields inherited from class ij.process.ImageProcessor |
BLACK, BLACK_AND_WHITE_LUT, NO_LUT_UPDATE, NO_THRESHOLD, OVER_UNDER_LUT, RED_LUT |
| Constructor Summary | |
ShortProcessor(int width,
int height)
Creates a blank ShortProcessor using the default grayscale LUT that displays zero as black. |
|
ShortProcessor(int width,
int height,
boolean unsigned)
Obsolete. |
|
ShortProcessor(int width,
int height,
short[] pixels,
java.awt.image.ColorModel cm)
Creates a new ShortProcessor using the specified pixel array and ColorModel. |
|
ShortProcessor(int width,
int height,
short[] pixels,
java.awt.image.ColorModel cm,
boolean unsigned)
Obsolete. |
|
| Method Summary | |
void |
add(double value)
Adds 'value' to each pixel in the image or ROI. |
void |
add(int value)
Adds 'value' to each pixel in the image or ROI. |
void |
and(int value)
Binary AND of each pixel in the image or ROI with 'value'. |
void |
applyTable(int[] lut)
Transforms the pixel data using a 65536 entry lookup table. |
void |
autoThreshold()
For byte images, converts to binary using an automatically determined threshold. |
void |
convolve(float[][] kernel,
int kw,
int kh)
|
void |
convolve3x3(int[] kernel)
3x3 convolution contributed by Glynne Casteel. |
void |
copyBits(ImageProcessor ip,
int xloc,
int yloc,
int mode)
Copies the image contained in 'ip' to (xloc, yloc) using one of the transfer modes defined in the Blitter interface. |
java.awt.Image |
createImage()
Create an 8-bit AWT image by scaling pixels in the range min-max to 0-255. |
ImageProcessor |
createProcessor(int width,
int height)
Returns a new, blank ShortProcessor with the specified width and height. |
ImageProcessor |
crop()
Creates a new processor containing an image that corresponds to the current ROI. |
void |
dilate()
Dilates the image or ROI using a 3x3 minimum filter. |
void |
drawPixel(int x,
int y)
Draws a pixel in the current foreground color. |
void |
erode()
Erodes the image or ROI using a 3x3 maximum filter. |
void |
fill()
Fills the current rectangular ROI. |
void |
fill(int[] mask)
Fills pixels that are within roi and part of the mask. |
void |
filter(int type)
Filters using a 3x3 neighborhood. |
void |
findMinAndMax()
|
void |
flipVertical()
Flips the image or ROI vertically. |
void |
gamma(double value)
Performs gamma correction of the image or ROI. |
int[] |
getHistogram()
Returns 65536 bin histogram of the current ROI, which can be non-rectangular. |
double |
getInterpolatedPixel(double x,
double y)
Uses bilinear interpolation to find the pixel value at real coordinates (x,y). |
double |
getInterpolatedValue(double x,
double y)
Uses bilinear interpolation to find the calibrated pixel value at real coordinates (x,y). |
double |
getMax()
Returns the largest displayed pixel value. |
double |
getMin()
Returns the smallest displayed pixel value. |
int |
getPixel(int x,
int y)
Returns the value of the pixel at (x,y). |
java.lang.Object |
getPixels()
Returns a reference to the short array containing this image's pixel data. |
java.lang.Object |
getPixelsCopy()
Returns a reference to this image's snapshot (undo) array. |
float |
getPixelValue(int x,
int y)
Returns the value of the pixel at (x,y). |
void |
Gradient2D()
|
void |
Gradient2DIn(int refX,
int refY)
computes inward gradient toward center of ROI |
void |
Gradient2DOut(int refX,
int refY)
computes outward gradient from center of ROI |
void |
invert()
Inverts the image or ROI. |
void |
log()
Performs a log transform on the image or ROI. |
void |
max(double value)
Pixels greater than 'value' are set to 'value'. |
void |
medianFilter()
A 3x3 median filter. |
void |
min(double value)
Pixels less than 'value' are set to 'value'. |
void |
multiply(double value)
Multiplies each pixel in the image or ROI by 'value'. |
void |
noise(double range)
Adds random noise to the image or ROI. |
void |
or(int value)
Binary OR of each pixel in the image or ROI with 'value'. |
void |
putPixel(int x,
int y,
int value)
Stores the specified value at (x,y). |
void |
putPixelValue(int x,
int y,
double value)
Stores the specified real value at (x,y). |
void |
reset()
Restores the pixel data from the snapshot (undo) buffer. |
void |
reset(int[] mask)
Restore pixels that are within roi but not part of the mask. |
void |
resetMinAndMax()
Recalculates the min and max values used to scale pixel values to 0-255 for display. |
ImageProcessor |
resize(int dstWidth,
int dstHeight)
Creates a new ShortProcessor containing a scaled copy of this image or selection. |
void |
reWindowImage()
|
void |
rotate(double angle)
Rotates the image or ROI 'angle' degrees clockwise. |
void |
scale(double xScale,
double yScale)
Scales the image or selection using the specified scale factors. |
void |
setColor(java.awt.Color color)
Sets the foreground fill/draw color. |
void |
setMinAndMax(double min,
double max)
Sets the min and max variables that control how real pixel values are mapped to 0-255 screen values. |
void |
setPixels(java.lang.Object pixels)
Sets a new pixel array for the image and resets the snapshot buffer. |
void |
setThreshold(double minThreshold,
double maxThreshold,
int lutUpdate)
Sets the lower and upper threshold levels. |
void |
setValue(double value)
Sets the default fill/draw value, where 0<=value<=65535). |
void |
snapshot()
Makes a copy of this image's pixel data. |
void |
sqr()
Performs a square transform on the image or ROI. |
void |
sqrt()
Performs a square root transform on the image or ROI. |
void |
threshold(int level)
|
void |
xor(int value)
Binary exclusive OR of each pixel in the image or ROI with 'value'. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ShortProcessor(int width,
int height,
short[] pixels,
java.awt.image.ColorModel cm)
public ShortProcessor(int width,
int height)
public ShortProcessor(int width,
int height,
short[] pixels,
java.awt.image.ColorModel cm,
boolean unsigned)
public ShortProcessor(int width,
int height,
boolean unsigned)
| Method Detail |
public void findMinAndMax()
public java.awt.Image createImage()
createImage in class ImageProcessor
public ImageProcessor createProcessor(int width,
int height)
createProcessor in class ImageProcessorpublic void snapshot()
ImageProcessorsnapshot in class ImageProcessorpublic void reset()
ImageProcessorreset in class ImageProcessorpublic void reset(int[] mask)
ImageProcessorreset in class ImageProcessorpublic double getMin()
getMin in class ImageProcessorpublic double getMax()
getMax in class ImageProcessor
public void setMinAndMax(double min,
double max)
setMinAndMax in class ImageProcessorresetMinAndMax,
ContrastAdjusterpublic void resetMinAndMax()
resetMinAndMax in class ImageProcessor
public int getPixel(int x,
int y)
ImageProcessorgetPixel in class ImageProcessor
public double getInterpolatedPixel(double x,
double y)
getInterpolatedPixel in class ImageProcessor
public double getInterpolatedValue(double x,
double y)
getInterpolatedValue in class ImageProcessor
public void putPixel(int x,
int y,
int value)
putPixel in class ImageProcessor
public void putPixelValue(int x,
int y,
double value)
putPixelValue in class ImageProcessor
public void drawPixel(int x,
int y)
drawPixel in class ImageProcessor
public float getPixelValue(int x,
int y)
ImageProcessorgetPixelValue in class ImageProcessorpublic java.lang.Object getPixels()
getPixels in class ImageProcessorpublic java.lang.Object getPixelsCopy()
getPixelsCopy in class ImageProcessorpublic void setPixels(java.lang.Object pixels)
ImageProcessorsetPixels in class ImageProcessor
public void copyBits(ImageProcessor ip,
int xloc,
int yloc,
int mode)
copyBits in class ImageProcessorpublic void applyTable(int[] lut)
applyTable in class ImageProcessorpublic void invert()
ImageProcessorinvert in class ImageProcessorpublic void add(int value)
ImageProcessoradd in class ImageProcessorpublic void add(double value)
ImageProcessoradd in class ImageProcessorpublic void multiply(double value)
ImageProcessormultiply in class ImageProcessorpublic void and(int value)
ImageProcessorand in class ImageProcessorpublic void or(int value)
ImageProcessoror in class ImageProcessorpublic void xor(int value)
ImageProcessorxor in class ImageProcessorpublic void gamma(double value)
ImageProcessorgamma in class ImageProcessorpublic void log()
ImageProcessorlog in class ImageProcessorpublic void sqr()
ImageProcessorsqr in class ImageProcessorpublic void sqrt()
ImageProcessorsqrt in class ImageProcessorpublic void min(double value)
ImageProcessormin in class ImageProcessorpublic void max(double value)
ImageProcessormax in class ImageProcessorpublic void fill()
fill in class ImageProcessorpublic void fill(int[] mask)
fill in class ImageProcessorpublic void convolve3x3(int[] kernel)
convolve3x3 in class ImageProcessorpublic void filter(int type)
filter in class ImageProcessorpublic void rotate(double angle)
rotate in class ImageProcessorImageProcessor.setInterpolate(boolean)public void flipVertical()
ImageProcessorflipVertical in class ImageProcessor
public void scale(double xScale,
double yScale)
scale in class ImageProcessorImageProcessor.setInterpolate(boolean)
public ImageProcessor resize(int dstWidth,
int dstHeight)
resize in class ImageProcessorij.process.ImageProcessorImageProcessor.setInterpolate(boolean)public ImageProcessor crop()
ImageProcessorcrop in class ImageProcessorpublic void setColor(java.awt.Color color)
setColor in class ImageProcessorpublic void setValue(double value)
setValue in class ImageProcessorpublic int[] getHistogram()
getHistogram in class ImageProcessor
public void setThreshold(double minThreshold,
double maxThreshold,
int lutUpdate)
ImageProcessorsetThreshold in class ImageProcessorpublic void noise(double range)
ImageProcessornoise in class ImageProcessorij.process.ImageProcessorrange - the range of random numberspublic void threshold(int level)
public void autoThreshold()
ImageProcessorautoThreshold in class ImageProcessorpublic void medianFilter()
ImageProcessormedianFilter in class ImageProcessorpublic void erode()
ImageProcessorerode in class ImageProcessorpublic void dilate()
ImageProcessordilate in class ImageProcessorpublic void Gradient2D()
Gradient2D in class ImageProcessor
public void Gradient2DOut(int refX,
int refY)
ImageProcessorGradient2DOut in class ImageProcessor
public void Gradient2DIn(int refX,
int refY)
ImageProcessorGradient2DIn in class ImageProcessorpublic void reWindowImage()
public void convolve(float[][] kernel,
int kw,
int kh)
convolve in class ImageProcessor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||