ini.trakem2.imaging
Class FloatProcessorT2

java.lang.Object
  extended by ij.process.ImageProcessor
      extended by ij.process.FloatProcessor
          extended by ini.trakem2.imaging.FloatProcessorT2

public class FloatProcessorT2
extends ij.process.FloatProcessor


Field Summary
 
Fields inherited from class ij.process.FloatProcessor
pixels8
 
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, FIND_EDGES, fmImage, font, fontMetrics, gLUT1, gLUT2, height, histogramMax, histogramMin, histogramSize, image, img, interpolate, interpolationMethod, inversionTested, invertedLut, ISODATA, ISODATA2, justification, LEFT_JUSTIFY, lineWidth, lutAnimation, lutUpdateMode, MAX, maxThreshold, MEDIAN_FILTER, MIN, minMaxSet, minThreshold, NEAREST_NEIGHBOR, newPixels, NO_LUT_UPDATE, NO_THRESHOLD, NONE, OVER_UNDER_LUT, raster, RED_LUT, RIGHT_JUSTIFY, rLUT1, rLUT2, roiHeight, roiWidth, roiX, roiY, sampleModel, snapshotHeight, snapshotWidth, source, width, xMax, xMin, yMax, yMin
 
Constructor Summary
FloatProcessorT2(ij.process.ByteProcessor bp)
           
FloatProcessorT2(ij.process.ColorProcessor cp, int channel)
           
FloatProcessorT2(ij.process.FloatProcessor fp)
           
FloatProcessorT2(int width, int height)
           
FloatProcessorT2(int width, int height, byte[] pix, double min, double max)
           
FloatProcessorT2(int width, int height, double min, double max)
           
FloatProcessorT2(int width, int height, float[] pixels, java.awt.image.ColorModel cm)
           
FloatProcessorT2(int width, int height, float[] pixels, java.awt.image.ColorModel cm, double min, double max)
           
 
Method Summary
 ij.process.ImageProcessor createProcessor(int width, int height)
          Returns a new, blank FloatProcessor with the specified width and height.
 void debugMinMax(java.lang.String msg)
           
 void findMinAndMax()
           
 int[] getARGBPixels(byte[] alpha)
          Return the float array of pixels as a byte array, cropping (no scaling).
 int[] getARGBPixels(byte[] alpha, byte[] outside)
          Return the float array of pixels as a byte array, cropping (no scaling).
 int[] getARGBPixels(float[] alpha)
          Return the float array of pixels as a byte array, with scaling.
 int[] getARGBPixels(float[] alpha, float[] outside)
          Return the float array of pixels as a byte array, cropping (no scaling).
 byte[] getBytePixels()
          Return the float array of pixels as a byte array, cropping (no scaling).
 float[] getFloatPixels()
           
 int[] getRGBPixels()
          Return the float array of pixels as a byte array, cropping (no scaling).
 void resizeInPlace(int w, int h)
           
 void setMinMax(double min, double max)
           
 void setPixels(int width, int height, float[] pixels)
          Set pixels and change image dimensions if width and height are different than the current.
 
Methods inherited from class ij.process.FloatProcessor
abs, add, add, and, applyTable, autoThreshold, convolve, convolve3x3, copyBits, create8BitImage, createImage, crop, dilate, drawPixel, duplicate, erode, exp, fill, fill, filter, flipVertical, gamma, get, get, getBackgroundValue, getBicubicInterpolatedPixel, getBufferedImage, getf, getf, getHistogram, getInterpolatedPixel, getMax, getMin, getPixel, getPixel, getPixelInterpolated, getPixels, getPixelsCopy, getPixelValue, getSnapshotPixels, invert, log, max, maxValue, medianFilter, min, minValue, multiply, noise, or, putPixel, putPixel, putPixelValue, reset, reset, resetMinAndMax, resize, rotate, scale, set, set, setBackgroundValue, setColor, setf, setf, setMinAndMax, setPixels, setPixels, setSnapshotPixels, setThreshold, setValue, snapshot, sqr, sqrt, swapPixelArrays, threshold, toFloat, xor
 
Methods inherited from class ij.process.ImageProcessor
convertToByte, convertToFloat, convertToRGB, convertToShort, cubic, draw, drawDot, drawDot2, drawLine, drawOval, drawPolygon, drawRect, drawString, drawString, fill, fillOutside, fillOval, fillPolygon, findEdges, flipHorizontal, getAutoThreshold, getAutoThreshold, getBestIndex, getCalibrationTable, getColorModel, getColumn, getCurrentColorModel, getDefaultColorModel, getFloatArray, getFont, getFontMetrics, getHeight, getHistogramMax, getHistogramMin, getHistogramSize, getIndexSampleModel, getIntArray, getInterpolate, getInterpolatedValue, getInterpolationMethod, getInterpolationMethods, getLine, getLineWidth, getLutUpdateMode, getMask, getMaskArray, getMaxThreshold, getMinThreshold, getNChannels, getNeighborhood, getPixelCount, getRoi, getRow, getSliceNumber, getStatistics, getStringWidth, getWidth, hideProgress, insert, invertLut, isBinary, isColorLut, isDefaultLut, isInvertedLut, isKillable, isPseudoColorLut, lineTo, makeDefaultColorModel, maskSizeError, moveTo, putColumn, putRow, resetBinaryThreshold, resetRoi, resetThreshold, resize, 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, showProgress, smooth, subtract, toString, translate, translate, updateComposite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatProcessorT2

public FloatProcessorT2(int width,
                        int height,
                        float[] pixels,
                        java.awt.image.ColorModel cm)

FloatProcessorT2

public FloatProcessorT2(int width,
                        int height,
                        float[] pixels,
                        java.awt.image.ColorModel cm,
                        double min,
                        double max)

FloatProcessorT2

public FloatProcessorT2(int width,
                        int height,
                        double min,
                        double max)

FloatProcessorT2

public FloatProcessorT2(int width,
                        int height)

FloatProcessorT2

public FloatProcessorT2(int width,
                        int height,
                        byte[] pix,
                        double min,
                        double max)

FloatProcessorT2

public FloatProcessorT2(ij.process.ColorProcessor cp,
                        int channel)

FloatProcessorT2

public FloatProcessorT2(ij.process.FloatProcessor fp)

FloatProcessorT2

public FloatProcessorT2(ij.process.ByteProcessor bp)
Method Detail

setMinMax

public final void setMinMax(double min,
                            double max)

setPixels

public final void setPixels(int width,
                            int height,
                            float[] pixels)
Set pixels and change image dimensions if width and height are different than the current.


resizeInPlace

public final void resizeInPlace(int w,
                                int h)

createProcessor

public ij.process.ImageProcessor createProcessor(int width,
                                                 int height)
Returns a new, blank FloatProcessor with the specified width and height.

Overrides:
createProcessor in class ij.process.FloatProcessor

findMinAndMax

public void findMinAndMax()
Overrides:
findMinAndMax in class ij.process.FloatProcessor

getFloatPixels

public final float[] getFloatPixels()

getBytePixels

public final byte[] getBytePixels()
Return the float array of pixels as a byte array, cropping (no scaling).


getRGBPixels

public final int[] getRGBPixels()
Return the float array of pixels as a byte array, cropping (no scaling).


getARGBPixels

public final int[] getARGBPixels(byte[] alpha)
Return the float array of pixels as a byte array, cropping (no scaling). It's your problem to ensure alpha has same length as width*height.


getARGBPixels

public final int[] getARGBPixels(byte[] alpha,
                                 byte[] outside)
Return the float array of pixels as a byte array, cropping (no scaling). It's your problem to ensure alpha and outside have same length as width*height.


debugMinMax

public final void debugMinMax(java.lang.String msg)

getARGBPixels

public final int[] getARGBPixels(float[] alpha)
Return the float array of pixels as a byte array, with scaling. It's your problem to ensure alpha has same length as width*height.


getARGBPixels

public final int[] getARGBPixels(float[] alpha,
                                 float[] outside)
Return the float array of pixels as a byte array, cropping (no scaling). It's your problem to ensure alpha and outside have same length as width*height.