|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.process.ImageProcessor
edu.stanford.rsl.konrad.io.SerializableFloatProcessor
public class SerializableFloatProcessor
Field Summary |
---|
Fields inherited from class ij.process.ImageProcessor |
---|
BICUBIC, BILINEAR, BLACK, BLACK_AND_WHITE_LUT, CENTER_JUSTIFY, ISODATA, ISODATA2, LEFT_JUSTIFY, NEAREST_NEIGHBOR, NO_LUT_UPDATE, NO_THRESHOLD, NONE, OVER_UNDER_LUT, RED_LUT, RIGHT_JUSTIFY |
Constructor Summary | |
---|---|
SerializableFloatProcessor(float[][] array)
Creates a FloatProcessor from a 2D float array using the default LUT. |
|
SerializableFloatProcessor(ij.process.FloatProcessor floatProcessor)
Creates a new FloatProcessor using the specified FloatProcessor. |
|
SerializableFloatProcessor(ij.process.ImageProcessor imageProcessor)
Creates a new FloatProcessor using the specified ImageProcessor. |
|
SerializableFloatProcessor(int[][] array)
Creates a FloatProcessor from an int[][] array. |
|
SerializableFloatProcessor(int width,
int height)
Creates a blank FloatProcessor using the default grayscale LUT that displays zero as black. |
|
SerializableFloatProcessor(int width,
int height,
double[] pixels)
Creates a FloatProcessor from a double array using the default grayscale LUT. |
|
SerializableFloatProcessor(int width,
int height,
float[] pixels,
java.awt.image.ColorModel cm)
Creates a new FloatProcessor using the specified pixel array and ColorModel. |
|
SerializableFloatProcessor(int width,
int height,
int[] pixels)
Creates a FloatProcessor from an int array using the default grayscale LUT. |
Method Summary | |
---|---|
void |
abs()
|
void |
add(double value)
|
void |
add(int value)
|
void |
and(int value)
|
void |
applyTable(int[] lut)
|
void |
autoThreshold()
Not implemented. |
void |
convolve(float[] kernel,
int kernelWidth,
int kernelHeight)
Performs a convolution operation using the specified kernel. |
void |
convolve3x3(int[] kernel)
Does 3x3 convolution. |
void |
copyBits(ij.process.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()
|
SerializableFloatProcessor |
createProcessor(int width,
int height)
Returns a new, blank FloatProcessor with the specified width and height. |
ij.process.ImageProcessor |
crop()
|
void |
dilate()
Not implemented. |
void |
drawPixel(int x,
int y)
Draws a pixel in the current foreground color. |
SerializableFloatProcessor |
duplicate()
Returns a duplicate of this image. |
void |
erode()
Not implemented. |
void |
exp()
|
void |
fill()
Fills the current rectangular ROI. |
void |
fill(ij.process.ImageProcessor mask)
Fills pixels that are within roi and part of the mask. |
void |
filter(int type)
Filters using a 3x3 neighborhood. |
void |
findMinAndMax()
Calculates the minimum and maximum pixel value for the entire image. |
void |
flipVertical()
|
void |
gamma(double value)
|
int |
get(int index)
|
int |
get(int x,
int y)
|
double |
getBackgroundValue()
Always returns 0. |
double |
getBicubicInterpolatedPixel(double x0,
double y0,
SerializableFloatProcessor ip2)
This method is from Chapter 16 of "Digital Image Processing: An Algorithmic Introduction Using Java" by Burger and Burge (http://www.imagingbook.com/). |
java.awt.image.BufferedImage |
getBufferedImage()
Returns this image as an 8-bit BufferedImage. |
float |
getf(int index)
|
float |
getf(int x,
int y)
|
int |
getHeight()
|
int[] |
getHistogram()
Not implemented. |
double |
getInterpolatedPixel(double x,
double y)
Uses the current interpolation method (BILINEAR or BICUBIC) to calculate the 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 a pixel value that must be converted using Float.intBitsToFloat(). |
int[] |
getPixel(int x,
int y,
int[] iArray)
Returns the value of the pixel at (x,y) in a one element int array. |
int |
getPixelInterpolated(double x,
double y)
|
java.lang.Object |
getPixels()
Returns a reference to the float array containing this image's pixel data. |
java.lang.Object |
getPixelsCopy()
Returns a copy of the pixel data. |
float |
getPixelValue(int x,
int y)
Returns the value of the pixel at (x,y) as a float. |
java.lang.Object |
getSnapshotPixels()
|
int |
getWidth()
|
void |
invert()
|
void |
log()
|
void |
max(double value)
|
double |
maxValue()
Returns the largest possible positive finite pixel value. |
void |
medianFilter()
Not implemented. |
void |
min(double value)
|
double |
minValue()
Returns the smallest possible positive nonzero pixel value. |
void |
multiply(double value)
|
void |
noise(double range)
|
void |
or(int value)
|
void |
putPixel(int x,
int y,
int value)
Stores the specified value at (x,y). |
void |
putPixel(int x,
int y,
int[] iArray)
Sets a pixel in the image using a one element int array. |
void |
putPixelValue(int x,
int y,
double value)
Stores the specified real value at (x,y). |
void |
reset()
|
void |
reset(ij.process.ImageProcessor mask)
|
void |
resetMinAndMax()
Recalculates the min and max values used to scale pixel values to 0-255 for display. |
ij.process.ImageProcessor |
resize(int dstWidth,
int dstHeight)
Creates a new FloatProcessor containing a scaled copy of this image or selection. |
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 |
set(int index,
int value)
|
void |
set(int x,
int y,
int value)
|
void |
setBackgroundValue(double value)
Does nothing. |
void |
setColor(java.awt.Color color)
Sets the foreground fill/draw color. |
void |
setf(int index,
float value)
|
void |
setf(int x,
int y,
float value)
|
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(int channelNumber,
ij.process.FloatProcessor fp)
Sets the pixels, and min&max values from a FloatProcessor. |
void |
setPixels(java.lang.Object pixels)
|
void |
setSnapshotPixels(java.lang.Object pixels)
|
void |
setThreshold(double minThreshold,
double maxThreshold,
int lutUpdate)
|
void |
setValue(double value)
Sets the default fill/draw value. |
void |
snapshot()
|
void |
sqr()
|
void |
sqrt()
|
void |
threshold(int level)
Not implemented. |
ij.process.FloatProcessor |
toFloat(int channelNumber,
ij.process.FloatProcessor fp)
Returns this FloatProcessor. |
ij.process.FloatProcessor |
toFloat(SerializableFloatProcessor fp)
Returns this FloatProcessor. |
void |
xor(int value)
|
Methods inherited from class ij.process.ImageProcessor |
---|
convertToByte, convertToFloat, convertToRGB, convertToShort, draw, drawDot, drawDot2, drawLine, drawOval, drawPolygon, drawRect, drawString, drawString, fill, fillOutside, fillOval, fillPolygon, findEdges, flipHorizontal, getAutoThreshold, getAutoThreshold, getBestIndex, getBicubicInterpolatedPixel, getCalibrationTable, getColorModel, getColumn, getCurrentColorModel, getDefaultColorModel, getFloatArray, getFont, getFontMetrics, getHistogramMax, getHistogramMin, getHistogramSize, getIntArray, getInterpolate, getInterpolatedValue, getInterpolationMethods, getLine, getLineWidth, getLutUpdateMode, getMask, getMaskArray, getMaxThreshold, getMinThreshold, getNChannels, getNeighborhood, getPixelCount, getRoi, getRow, getSliceNumber, getStatistics, getStringWidth, insert, invertLut, isBinary, isColorLut, isDefaultLut, isInvertedLut, isKillable, isPseudoColorLut, lineTo, moveTo, putColumn, putRow, resetBinaryThreshold, resetRoi, resetThreshold, resize, rotateLeft, rotateRight, setAntialiasedText, setAutoThreshold, setAutoThreshold, setAutoThreshold, setAutoThreshold, setAutoThreshold, setBinaryThreshold, setCalibrationTable, setClipRect, setColor, setColorModel, setFloatArray, setFont, setHistogramRange, setHistogramSize, setIntArray, setInterpolate, setInterpolationMethod, setJustification, setLineWidth, setLutAnimation, setMask, setOverColor, setProgressBar, setRoi, setRoi, setRoi, setRoi, setSliceNumber, setSnapshotCopyMode, setUnderColor, setUseBicubic, sharpen, smooth, toString, translate, translate, updateComposite |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SerializableFloatProcessor(int width, int height, float[] pixels, java.awt.image.ColorModel cm)
public SerializableFloatProcessor(ij.process.FloatProcessor floatProcessor)
public SerializableFloatProcessor(ij.process.ImageProcessor imageProcessor)
public SerializableFloatProcessor(int width, int height)
public SerializableFloatProcessor(int width, int height, int[] pixels)
public SerializableFloatProcessor(int width, int height, double[] pixels)
public SerializableFloatProcessor(float[][] array)
public SerializableFloatProcessor(int[][] array)
Method Detail |
---|
public void findMinAndMax()
getMin()
,
getMin()
public void setMinAndMax(double min, double max)
setMinAndMax
in class ij.process.ImageProcessor
public void resetMinAndMax()
resetMinAndMax
in class ij.process.ImageProcessor
public double getMin()
getMin
in class ij.process.ImageProcessor
public double getMax()
getMax
in class ij.process.ImageProcessor
public java.awt.Image createImage()
createImage
in class ij.process.ImageProcessor
public java.awt.image.BufferedImage getBufferedImage()
getBufferedImage
in class ij.process.ImageProcessor
public SerializableFloatProcessor createProcessor(int width, int height)
createProcessor
in class ij.process.ImageProcessor
public void snapshot()
snapshot
in class ij.process.ImageProcessor
public void reset()
reset
in class ij.process.ImageProcessor
public void reset(ij.process.ImageProcessor mask)
reset
in class ij.process.ImageProcessor
public void setSnapshotPixels(java.lang.Object pixels)
setSnapshotPixels
in class ij.process.ImageProcessor
public java.lang.Object getSnapshotPixels()
getSnapshotPixels
in class ij.process.ImageProcessor
public int getPixel(int x, int y)
getPixel
in class ij.process.ImageProcessor
public final int get(int x, int y)
get
in class ij.process.ImageProcessor
public final void set(int x, int y, int value)
set
in class ij.process.ImageProcessor
public final int get(int index)
get
in class ij.process.ImageProcessor
public final void set(int index, int value)
set
in class ij.process.ImageProcessor
public final float getf(int x, int y)
getf
in class ij.process.ImageProcessor
public final void setf(int x, int y, float value)
setf
in class ij.process.ImageProcessor
public final float getf(int index)
getf
in class ij.process.ImageProcessor
public final void setf(int index, float value)
setf
in class ij.process.ImageProcessor
public int[] getPixel(int x, int y, int[] iArray)
getPixel
in class ij.process.ImageProcessor
public final void putPixel(int x, int y, int[] iArray)
putPixel
in class ij.process.ImageProcessor
public double getInterpolatedPixel(double x, double y)
getInterpolatedPixel
in class ij.process.ImageProcessor
public final int getPixelInterpolated(double x, double y)
getPixelInterpolated
in class ij.process.ImageProcessor
public final void putPixel(int x, int y, int value)
putPixel
in class ij.process.ImageProcessor
public void putPixelValue(int x, int y, double value)
putPixelValue
in class ij.process.ImageProcessor
public float getPixelValue(int x, int y)
getPixelValue
in class ij.process.ImageProcessor
public void drawPixel(int x, int y)
drawPixel
in class ij.process.ImageProcessor
public java.lang.Object getPixels()
getPixels
in class ij.process.ImageProcessor
public java.lang.Object getPixelsCopy()
getPixelsCopy
in class ij.process.ImageProcessor
ImageProcessor.snapshot()
,
ImageProcessor.setSnapshotCopyMode(boolean)
public void setPixels(java.lang.Object pixels)
setPixels
in class ij.process.ImageProcessor
public void copyBits(ij.process.ImageProcessor ip, int xloc, int yloc, int mode)
copyBits
in class ij.process.ImageProcessor
public void applyTable(int[] lut)
applyTable
in class ij.process.ImageProcessor
public void invert()
invert
in class ij.process.ImageProcessor
public void add(int value)
add
in class ij.process.ImageProcessor
public void add(double value)
add
in class ij.process.ImageProcessor
public void multiply(double value)
multiply
in class ij.process.ImageProcessor
public void and(int value)
and
in class ij.process.ImageProcessor
public void or(int value)
or
in class ij.process.ImageProcessor
public void xor(int value)
xor
in class ij.process.ImageProcessor
public void gamma(double value)
gamma
in class ij.process.ImageProcessor
public void log()
log
in class ij.process.ImageProcessor
public void exp()
exp
in class ij.process.ImageProcessor
public void sqr()
sqr
in class ij.process.ImageProcessor
public void sqrt()
sqrt
in class ij.process.ImageProcessor
public void abs()
abs
in class ij.process.ImageProcessor
public void min(double value)
min
in class ij.process.ImageProcessor
public void max(double value)
max
in class ij.process.ImageProcessor
public void fill()
fill
in class ij.process.ImageProcessor
public void fill(ij.process.ImageProcessor mask)
fill
in class ij.process.ImageProcessor
public void convolve3x3(int[] kernel)
convolve3x3
in class ij.process.ImageProcessor
public void filter(int type)
filter
in class ij.process.ImageProcessor
public void rotate(double angle)
rotate
in class ij.process.ImageProcessor
ImageProcessor.setInterpolate(boolean)
public void flipVertical()
flipVertical
in class ij.process.ImageProcessor
public void noise(double range)
noise
in class ij.process.ImageProcessor
public ij.process.ImageProcessor crop()
crop
in class ij.process.ImageProcessor
public SerializableFloatProcessor duplicate()
duplicate
in class ij.process.ImageProcessor
public void scale(double xScale, double yScale)
scale
in class ij.process.ImageProcessor
ImageProcessor.setInterpolate(boolean)
public ij.process.ImageProcessor resize(int dstWidth, int dstHeight)
resize
in class ij.process.ImageProcessor
public double getBicubicInterpolatedPixel(double x0, double y0, SerializableFloatProcessor ip2)
public void setColor(java.awt.Color color)
setColor
in class ij.process.ImageProcessor
public void setValue(double value)
setValue
in class ij.process.ImageProcessor
public void setBackgroundValue(double value)
setBackgroundValue
in class ij.process.ImageProcessor
public double getBackgroundValue()
getBackgroundValue
in class ij.process.ImageProcessor
public void setThreshold(double minThreshold, double maxThreshold, int lutUpdate)
setThreshold
in class ij.process.ImageProcessor
public void convolve(float[] kernel, int kernelWidth, int kernelHeight)
convolve
in class ij.process.ImageProcessor
public void threshold(int level)
threshold
in class ij.process.ImageProcessor
public void autoThreshold()
autoThreshold
in class ij.process.ImageProcessor
public void medianFilter()
medianFilter
in class ij.process.ImageProcessor
public int[] getHistogram()
getHistogram
in class ij.process.ImageProcessor
public void erode()
erode
in class ij.process.ImageProcessor
public void dilate()
dilate
in class ij.process.ImageProcessor
public ij.process.FloatProcessor toFloat(int channelNumber, ij.process.FloatProcessor fp)
toFloat
in class ij.process.ImageProcessor
channelNumber
- Ignored (needed for compatibility with ColorProcessor.toFloat)fp
- Ignored (needed for compatibility with the other ImageProcessor types).
public ij.process.FloatProcessor toFloat(SerializableFloatProcessor fp)
fp
- Ignored (needed for compatibility with the other ImageProcessor types).
public void setPixels(int channelNumber, ij.process.FloatProcessor fp)
setPixels
in class ij.process.ImageProcessor
channelNumber
- Ignored (needed for compatibility with ColorProcessor.toFloat)fp
- The FloatProcessor where the image data are read from.public double minValue()
minValue
in class ij.process.ImageProcessor
public double maxValue()
maxValue
in class ij.process.ImageProcessor
public int getWidth()
getWidth
in class ij.process.ImageProcessor
public int getHeight()
getHeight
in class ij.process.ImageProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |