Package loci.plugins.util
Class RecordedImageProcessor
java.lang.Object
ij.process.ImageProcessor
loci.plugins.util.RecordedImageProcessor
- All Implemented Interfaces:
Cloneable
Image processor extension that records commands executed upon it.
Allows "recordable virtual stacks" that repeat operations performed on
one image plane on other image planes when they are loaded from disk.
-
Field Summary
Fields inherited from class ij.process.ImageProcessor
antialiasedText, baseCM, BICUBIC, BILINEAR, BLACK, BLACK_AND_WHITE_LUT, BLUR_MORE, bLUT1, bLUT2, boldFont, CENTER_JUSTIFY, clipXMax, clipXMin, clipYMax, clipYMin, cm, cm2, CONVOLVE, cTable, cx, cy, defaultColorModel, drawingColor, fillValueSet, FIND_EDGES, fmGraphics, fmImage, font, fontMetrics, gLUT1, gLUT2, height, histogramMax, histogramMin, histogramSize, image, img, interpolate, interpolationMethod, inversionTested, INVERT_PROJECTION, invertedLut, ISODATA, ISODATA2, justification, LEFT_JUSTIFY, lineWidth, lutAnimation, lutUpdateMode, MAX, MAX_PROJECTION, maxThreshold, MEDIAN_FILTER, MIN, MIN_PROJECTION, minMaxSet, minThreshold, NEAREST_NEIGHBOR, newPixels, NO_LUT_UPDATE, NO_THRESHOLD, NONE, OVER_UNDER_LUT, raster, RED_LUT, RIGHT_JUSTIFY, rLUT1, rLUT2, rnd, roiHeight, roiWidth, roiX, roiY, sampleModel, seed, SET_FIRST_CHANNEL, snapshotHeight, snapshotWidth, source, SUM_PROJECTION, UPDATE_BLUE, UPDATE_GREEN, UPDATE_RED, width, xMax, xMin, yMax, yMin -
Constructor Summary
ConstructorsConstructorDescriptionRecordedImageProcessor(ImageProcessor proc, int channelNum, ImageProcessor[] otherChannels) -
Method Summary
Modifier and TypeMethodDescriptionvoidabs()voidadd(double value) voidadd(int value) voidand(int value) voidapplyMethodStack(List<loci.plugins.util.RecordedImageProcessor.MethodEntry> stack) voidapplyTable(int[] lut) voidconvertToByte(boolean doScaling) convertToShort(boolean doScaling) voidconvolve(float[] kernel, int kernelWidth, int kernelHeight) voidconvolve3x3(int[] kernel) voidcopyBits(ImageProcessor ip, int xloc, int yloc, int mode) createProcessor(int width, int height) crop()voiddilate()voiddrawDot(int xcenter, int ycenter) voiddrawLine(int x1, int y1, int x2, int y2) voiddrawOval(int x, int y, int width, int height) voiddrawPixel(int x, int y) voidvoiddrawRect(int x, int y, int width, int height) voiddrawString(String s) voiddrawString(String s, int x, int y) voiderode()voidexp()voidfill()voidfill(ImageProcessor mask) voidfillOval(int x, int y, int width, int height) voidvoidfilter(int type) voidvoidvoidvoidgamma(double value) intget(int index) intget(int x, int y) intintgetAutoThreshold(int[] histogram) doubleintfloat[]getChild()voidgetColumn(int x, int y, int[] data, int length) floatgetf(int index) floatgetf(int x, int y) float[][]doubleintint[]doubledoubleintint[][]booleandoublegetInterpolatedPixel(double x, double y) double[]getLine(double x1, double y1, double x2, double y2) intgetMask()byte[]doublegetMax()doubleList<loci.plugins.util.RecordedImageProcessor.MethodEntry> doublegetMin()doubleintintgetPixel(int x, int y) int[]getPixel(int x, int y, int[] iArray) intintgetPixelInterpolated(double x, double y) floatgetPixelValue(int x, int y) getRoi()voidgetRow(int x, int y, int[] data, int length) intintgetWidth()voidinsert(ImageProcessor ip, int xloc, int yloc) voidinvert()voidbooleanbooleanbooleanvoidlineTo(int x2, int y2) voidlog()voidmax(double value) doublemaxValue()voidvoidmin(double value) doubleminValue()voidmoveTo(int x, int y) voidmultiply(double value) voidnoise(double range) voidor(int value) voidputColumn(int x, int y, int[] data, int length) voidputPixel(int x, int y, int value) voidputPixel(int x, int y, int[] iArray) voidputPixelValue(int x, int y, double value) voidputRow(int x, int y, int[] data, int length) voidreset()voidreset(ImageProcessor mask) voidvoidvoidresetRoi()voidresize(int dstWidth) resize(int dstWidth, int dstHeight) voidrotate(double angle) voidscale(double xScale, double yScale) voidset(int index, int value) voidset(int x, int y, int value) voidsetAntialiasedText(boolean antialiased) voidsetAutoThreshold(int method, int lutUpdate) voidsetBackgroundValue(double value) voidsetCalibrationTable(float[] ctable) voidsetClipRect(Rectangle clipRect) voidsetColor(int value) voidvoidvoidsetDoRecording(boolean doRecording) voidsetf(int index, float value) voidsetf(int x, int y, float value) voidsetFloatArray(float[][] a) voidvoidsetHistogramRange(double histMin, double histMax) voidsetHistogramSize(int size) voidsetIntArray(int[][] a) voidsetInterpolate(boolean interpolate) voidsetJustification(int justification) voidsetLineWidth(int width) voidsetLutAnimation(boolean lutAnimation) voidsetMask(ImageProcessor mask) voidsetMinAndMax(double min, double max) voidsetPixels(int channelNumber, FloatProcessor fp) voidvoidvoidsetRoi(int x, int y, int rwidth, int rheight) voidvoidvoidvoidsetSnapshotCopyMode(boolean b) voidsetSnapshotPixels(Object pixels) voidsetThreshold(double minThreshold, double maxThreshold, int lutUpdate) voidsetValue(double value) voidsharpen()voidsmooth()voidsnapshot()voidsqr()voidsqrt()voidvoidthreshold(int level) toFloat(int channelNumber, FloatProcessor fp) toString()voidtranslate(int xOffset, int yOffset) voidupdateComposite(int[] rgbPixels, int channel) voidxor(int value) Methods inherited from class ij.process.ImageProcessor
applyMacro, bin, blurGaussian, clone, convertToByteProcessor, convertToByteProcessor, convertToColorProcessor, convertToFloatProcessor, convertToShortProcessor, convertToShortProcessor, createMask, cubic, draw, drawDot2, drawLine4, drawOverlay, drawRoi, drawString, fill, fillOutside, fillRect, fillValueSet, getBicubicInterpolatedPixel, getBitDepth, getColumn, getFont, getHistogram, getIndexSampleModel, getInterpolatedValue, getInterpolationMethod, getInterpolationMethods, getLineWidth, getLut, getNeighborhood, getOverlay, getProgressIncrement, getRow, getSliceNumber, getStatistics, getStats, getStringBounds, getThresholdColorModel, getValue, hideProgress, isBinary, isDefaultLut, isGrayscale, isKillable, isSigned16Bit, isThreshold, ln, makeDefaultColorModel, maskSizeError, putColumn, putRow, resize, resizeLinearly, scaleAndSetThreshold, set, setAutoThreshold, setAutoThreshold, setAutoThreshold, setAutoThreshold, setBackgroundColor, setBinaryThreshold, setColor, setColor, setFontSize, setGlobalBackgroundColor, setGlobalForegroundColor, setInterpolationMethod, setLut, setOverColor, setOverlay, setRandomSeed, setSliceNumber, setThreshold, setUnderColor, setUseBicubic, showProgress, subtract, threshold, translate, translate
-
Constructor Details
-
RecordedImageProcessor
-
RecordedImageProcessor
-
-
Method Details
-
setDoRecording
public void setDoRecording(boolean doRecording) -
getMethodStack
-
applyMethodStack
-
getChild
-
abs
public void abs()- Overrides:
absin classImageProcessor
-
add
public void add(double value) - Overrides:
addin classImageProcessor
-
add
public void add(int value) - Overrides:
addin classImageProcessor
-
and
public void and(int value) - Overrides:
andin classImageProcessor
-
applyTable
public void applyTable(int[] lut) - Specified by:
applyTablein classImageProcessor
-
autoThreshold
public void autoThreshold()- Overrides:
autoThresholdin classImageProcessor
-
convertToByte
- Overrides:
convertToBytein classImageProcessor
-
convertToFloat
- Overrides:
convertToFloatin classImageProcessor
-
convertToRGB
- Overrides:
convertToRGBin classImageProcessor
-
convertToShort
- Overrides:
convertToShortin classImageProcessor
-
convolve
public void convolve(float[] kernel, int kernelWidth, int kernelHeight) - Specified by:
convolvein classImageProcessor
-
convolve3x3
public void convolve3x3(int[] kernel) - Specified by:
convolve3x3in classImageProcessor
-
copyBits
- Specified by:
copyBitsin classImageProcessor
-
createImage
- Specified by:
createImagein classImageProcessor
-
createProcessor
- Specified by:
createProcessorin classImageProcessor
-
crop
- Specified by:
cropin classImageProcessor
-
dilate
public void dilate()- Specified by:
dilatein classImageProcessor
-
drawDot
public void drawDot(int xcenter, int ycenter) - Overrides:
drawDotin classImageProcessor
-
drawLine
public void drawLine(int x1, int y1, int x2, int y2) - Overrides:
drawLinein classImageProcessor
-
drawOval
public void drawOval(int x, int y, int width, int height) - Overrides:
drawOvalin classImageProcessor
-
drawPixel
public void drawPixel(int x, int y) - Specified by:
drawPixelin classImageProcessor
-
drawPolygon
- Overrides:
drawPolygonin classImageProcessor
-
drawRect
public void drawRect(int x, int y, int width, int height) - Overrides:
drawRectin classImageProcessor
-
drawString
- Overrides:
drawStringin classImageProcessor
-
drawString
- Overrides:
drawStringin classImageProcessor
-
duplicate
- Specified by:
duplicatein classImageProcessor
-
erode
public void erode()- Specified by:
erodein classImageProcessor
-
exp
public void exp()- Overrides:
expin classImageProcessor
-
fill
public void fill()- Overrides:
fillin classImageProcessor
-
fill
- Specified by:
fillin classImageProcessor
-
fillOval
public void fillOval(int x, int y, int width, int height) - Overrides:
fillOvalin classImageProcessor
-
fillPolygon
- Overrides:
fillPolygonin classImageProcessor
-
filter
public void filter(int type) - Specified by:
filterin classImageProcessor
-
findEdges
public void findEdges()- Overrides:
findEdgesin classImageProcessor
-
flipHorizontal
public void flipHorizontal()- Overrides:
flipHorizontalin classImageProcessor
-
flipVertical
public void flipVertical()- Specified by:
flipVerticalin classImageProcessor
-
gamma
public void gamma(double value) - Overrides:
gammain classImageProcessor
-
get
public int get(int index) - Specified by:
getin classImageProcessor
-
get
public int get(int x, int y) - Specified by:
getin classImageProcessor
-
getAutoThreshold
public int getAutoThreshold()- Overrides:
getAutoThresholdin classImageProcessor
-
getBackgroundValue
public double getBackgroundValue()- Specified by:
getBackgroundValuein classImageProcessor
-
getForegroundValue
public double getForegroundValue()- Specified by:
getForegroundValuein classImageProcessor
-
getAutoThreshold
public int getAutoThreshold(int[] histogram) - Overrides:
getAutoThresholdin classImageProcessor
-
getBestIndex
- Overrides:
getBestIndexin classImageProcessor
-
getBufferedImage
- Overrides:
getBufferedImagein classImageProcessor
-
getCalibrationTable
public float[] getCalibrationTable()- Overrides:
getCalibrationTablein classImageProcessor
-
getColorModel
- Overrides:
getColorModelin classImageProcessor
-
getColumn
public void getColumn(int x, int y, int[] data, int length) - Overrides:
getColumnin classImageProcessor
-
getCurrentColorModel
- Overrides:
getCurrentColorModelin classImageProcessor
-
getDefaultColorModel
- Overrides:
getDefaultColorModelin classImageProcessor
-
getf
public float getf(int index) - Specified by:
getfin classImageProcessor
-
getf
public float getf(int x, int y) - Specified by:
getfin classImageProcessor
-
getFloatArray
public float[][] getFloatArray()- Overrides:
getFloatArrayin classImageProcessor
-
getFontMetrics
- Overrides:
getFontMetricsin classImageProcessor
-
getHeight
public int getHeight()- Overrides:
getHeightin classImageProcessor
-
getHistogram
public int[] getHistogram()- Specified by:
getHistogramin classImageProcessor
-
getHistogramMax
public double getHistogramMax()- Overrides:
getHistogramMaxin classImageProcessor
-
getHistogramMin
public double getHistogramMin()- Overrides:
getHistogramMinin classImageProcessor
-
getHistogramSize
public int getHistogramSize()- Overrides:
getHistogramSizein classImageProcessor
-
getIntArray
public int[][] getIntArray()- Overrides:
getIntArrayin classImageProcessor
-
getInterpolate
public boolean getInterpolate()- Overrides:
getInterpolatein classImageProcessor
-
getInterpolatedPixel
public double getInterpolatedPixel(double x, double y) - Specified by:
getInterpolatedPixelin classImageProcessor
-
getLine
public double[] getLine(double x1, double y1, double x2, double y2) - Overrides:
getLinein classImageProcessor
-
getLutUpdateMode
public int getLutUpdateMode()- Overrides:
getLutUpdateModein classImageProcessor
-
getMask
- Overrides:
getMaskin classImageProcessor
-
getMaskArray
public byte[] getMaskArray()- Overrides:
getMaskArrayin classImageProcessor
-
getMax
public double getMax()- Specified by:
getMaxin classImageProcessor
-
getMaxThreshold
public double getMaxThreshold()- Overrides:
getMaxThresholdin classImageProcessor
-
getMin
public double getMin()- Specified by:
getMinin classImageProcessor
-
getMinThreshold
public double getMinThreshold()- Overrides:
getMinThresholdin classImageProcessor
-
getNChannels
public int getNChannels()- Overrides:
getNChannelsin classImageProcessor
-
getPixel
public int getPixel(int x, int y) - Specified by:
getPixelin classImageProcessor
-
getPixel
public int[] getPixel(int x, int y, int[] iArray) - Overrides:
getPixelin classImageProcessor
-
getPixelInterpolated
public int getPixelInterpolated(double x, double y) - Specified by:
getPixelInterpolatedin classImageProcessor
-
getPixelCount
public int getPixelCount()- Overrides:
getPixelCountin classImageProcessor
-
getPixels
- Specified by:
getPixelsin classImageProcessor
-
getPixelsCopy
- Specified by:
getPixelsCopyin classImageProcessor
-
getPixelValue
public float getPixelValue(int x, int y) - Specified by:
getPixelValuein classImageProcessor
-
getRoi
- Overrides:
getRoiin classImageProcessor
-
getRow
public void getRow(int x, int y, int[] data, int length) - Overrides:
getRowin classImageProcessor
-
getSnapshotPixels
- Specified by:
getSnapshotPixelsin classImageProcessor
-
getStringWidth
- Overrides:
getStringWidthin classImageProcessor
-
getWidth
public int getWidth()- Overrides:
getWidthin classImageProcessor
-
insert
- Overrides:
insertin classImageProcessor
-
invert
public void invert()- Overrides:
invertin classImageProcessor
-
invertLut
public void invertLut()- Overrides:
invertLutin classImageProcessor
-
isColorLut
public boolean isColorLut()- Overrides:
isColorLutin classImageProcessor
-
isInvertedLut
public boolean isInvertedLut()- Overrides:
isInvertedLutin classImageProcessor
-
isPseudoColorLut
public boolean isPseudoColorLut()- Overrides:
isPseudoColorLutin classImageProcessor
-
lineTo
public void lineTo(int x2, int y2) - Overrides:
lineToin classImageProcessor
-
log
public void log()- Overrides:
login classImageProcessor
-
max
public void max(double value) - Overrides:
maxin classImageProcessor
-
maxValue
public double maxValue()- Overrides:
maxValuein classImageProcessor
-
medianFilter
public void medianFilter()- Specified by:
medianFilterin classImageProcessor
-
min
public void min(double value) - Overrides:
minin classImageProcessor
-
minValue
public double minValue()- Overrides:
minValuein classImageProcessor
-
moveTo
public void moveTo(int x, int y) - Overrides:
moveToin classImageProcessor
-
multiply
public void multiply(double value) - Overrides:
multiplyin classImageProcessor
-
noise
public void noise(double range) - Specified by:
noisein classImageProcessor
-
or
public void or(int value) - Overrides:
orin classImageProcessor
-
putColumn
public void putColumn(int x, int y, int[] data, int length) - Overrides:
putColumnin classImageProcessor
-
putPixel
public void putPixel(int x, int y, int value) - Specified by:
putPixelin classImageProcessor
-
putPixel
public void putPixel(int x, int y, int[] iArray) - Overrides:
putPixelin classImageProcessor
-
putPixelValue
public void putPixelValue(int x, int y, double value) - Specified by:
putPixelValuein classImageProcessor
-
putRow
public void putRow(int x, int y, int[] data, int length) - Overrides:
putRowin classImageProcessor
-
reset
public void reset()- Specified by:
resetin classImageProcessor
-
reset
- Specified by:
resetin classImageProcessor
-
resetBinaryThreshold
public void resetBinaryThreshold()- Overrides:
resetBinaryThresholdin classImageProcessor
-
resetMinAndMax
public void resetMinAndMax()- Overrides:
resetMinAndMaxin classImageProcessor
-
resetRoi
public void resetRoi()- Overrides:
resetRoiin classImageProcessor
-
resetThreshold
public void resetThreshold()- Overrides:
resetThresholdin classImageProcessor
-
resize
- Overrides:
resizein classImageProcessor
-
resize
- Specified by:
resizein classImageProcessor
-
rotate
public void rotate(double angle) - Specified by:
rotatein classImageProcessor
-
rotateLeft
- Overrides:
rotateLeftin classImageProcessor
-
rotateRight
- Overrides:
rotateRightin classImageProcessor
-
scale
public void scale(double xScale, double yScale) - Specified by:
scalein classImageProcessor
-
set
public void set(int index, int value) - Specified by:
setin classImageProcessor
-
set
public void set(int x, int y, int value) - Specified by:
setin classImageProcessor
-
setAntialiasedText
public void setAntialiasedText(boolean antialiased) - Overrides:
setAntialiasedTextin classImageProcessor
-
setAutoThreshold
public void setAutoThreshold(int method, int lutUpdate) - Overrides:
setAutoThresholdin classImageProcessor
-
setBackgroundValue
public void setBackgroundValue(double value) - Specified by:
setBackgroundValuein classImageProcessor
-
setCalibrationTable
public void setCalibrationTable(float[] ctable) - Overrides:
setCalibrationTablein classImageProcessor
-
setClipRect
- Overrides:
setClipRectin classImageProcessor
-
setColor
- Specified by:
setColorin classImageProcessor
-
setColor
public void setColor(int value) - Overrides:
setColorin classImageProcessor
-
setColorModel
- Overrides:
setColorModelin classImageProcessor
-
setf
public void setf(int index, float value) - Specified by:
setfin classImageProcessor
-
setf
public void setf(int x, int y, float value) - Specified by:
setfin classImageProcessor
-
setFloatArray
public void setFloatArray(float[][] a) - Overrides:
setFloatArrayin classImageProcessor
-
setFont
- Overrides:
setFontin classImageProcessor
-
setHistogramRange
public void setHistogramRange(double histMin, double histMax) - Overrides:
setHistogramRangein classImageProcessor
-
setHistogramSize
public void setHistogramSize(int size) - Overrides:
setHistogramSizein classImageProcessor
-
setIntArray
public void setIntArray(int[][] a) - Overrides:
setIntArrayin classImageProcessor
-
setInterpolate
public void setInterpolate(boolean interpolate) - Overrides:
setInterpolatein classImageProcessor
-
setJustification
public void setJustification(int justification) - Overrides:
setJustificationin classImageProcessor
-
setLineWidth
public void setLineWidth(int width) - Overrides:
setLineWidthin classImageProcessor
-
setLutAnimation
public void setLutAnimation(boolean lutAnimation) - Overrides:
setLutAnimationin classImageProcessor
-
setMask
- Overrides:
setMaskin classImageProcessor
-
setMinAndMax
public void setMinAndMax(double min, double max) - Specified by:
setMinAndMaxin classImageProcessor
-
setPixels
- Specified by:
setPixelsin classImageProcessor
-
setPixels
- Specified by:
setPixelsin classImageProcessor
-
setProgressBar
- Overrides:
setProgressBarin classImageProcessor
-
setRoi
public void setRoi(int x, int y, int rwidth, int rheight) - Overrides:
setRoiin classImageProcessor
-
setRoi
- Overrides:
setRoiin classImageProcessor
-
setRoi
- Overrides:
setRoiin classImageProcessor
-
setRoi
- Overrides:
setRoiin classImageProcessor
-
setSnapshotCopyMode
public void setSnapshotCopyMode(boolean b) - Overrides:
setSnapshotCopyModein classImageProcessor
-
setSnapshotPixels
- Specified by:
setSnapshotPixelsin classImageProcessor
-
setThreshold
public void setThreshold(double minThreshold, double maxThreshold, int lutUpdate) - Overrides:
setThresholdin classImageProcessor
-
setValue
public void setValue(double value) - Specified by:
setValuein classImageProcessor
-
sharpen
public void sharpen()- Overrides:
sharpenin classImageProcessor
-
smooth
public void smooth()- Overrides:
smoothin classImageProcessor
-
snapshot
public void snapshot()- Specified by:
snapshotin classImageProcessor
-
sqr
public void sqr()- Overrides:
sqrin classImageProcessor
-
sqrt
public void sqrt()- Overrides:
sqrtin classImageProcessor
-
swapPixelArrays
public void swapPixelArrays()- Specified by:
swapPixelArraysin classImageProcessor
-
threshold
public void threshold(int level) - Specified by:
thresholdin classImageProcessor
-
toFloat
- Specified by:
toFloatin classImageProcessor
-
toString
- Overrides:
toStringin classImageProcessor
-
translate
public void translate(int xOffset, int yOffset) -
updateComposite
public void updateComposite(int[] rgbPixels, int channel) - Overrides:
updateCompositein classImageProcessor
-
xor
public void xor(int value) - Overrides:
xorin classImageProcessor
-