public class VectorProcessor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
VectorProcessor.Iterator
Iterator over 3x3 neighborhood of vector valued pixels.
|
static class |
VectorProcessor.Neighborhood3x3
Represents 3x3 neighborhood.
|
class |
VectorProcessor.PixelIterator
Iterator over pixel values.
|
| Constructor and Description |
|---|
VectorProcessor(ij.process.ColorProcessor cp) |
VectorProcessor(ij.ImagePlus imp) |
VectorProcessor(ij.ImageStack stack) |
VectorProcessor(int width,
int height,
int numberOfValues) |
| Modifier and Type | Method and Description |
|---|---|
VectorProcessor |
duplicate() |
float[] |
get(int x,
int y)
Return pixel value at coordinates (
x, y). |
float[] |
get(int x,
int y,
float[] dest)
Return pixel value at coordinates (
x, y). |
int |
getHeight() |
int |
getNumberOfValues() |
float[][] |
getPixels()
Gives direct access to pixel values in the image first index is the pixel number (between 0
and width*height-1), the second index references within each pixel value.
|
ij.gui.ProgressBar |
getProgressBar() |
java.awt.Rectangle |
getRoi() |
int |
getWidth() |
VectorProcessor.Iterator |
iterator() |
VectorProcessor.PixelIterator |
pixelIterator() |
void |
set(int x,
int y,
float[] v)
Set value of pixel value at coordinates (
x, y). |
void |
setProgressBar(ij.gui.ProgressBar progressBar) |
void |
setRoi(java.awt.Rectangle roi) |
ij.process.FloatProcessor[] |
toFloatProcessors()
Convert VectorProcessor to an array of
FloatProcessor's. |
ij.ImagePlus |
toFloatStack()
Convert VectorProcessor to ImagePlus with FloatProcessor stack.
|
ij.ImagePlus |
toFloatStack(java.lang.String[] labels)
Convert VectorProcessor to ImagePlus with FloatProcessor stack.
|
public VectorProcessor(int width,
int height,
int numberOfValues)
public VectorProcessor(ij.process.ColorProcessor cp)
public VectorProcessor(ij.ImagePlus imp)
public VectorProcessor(ij.ImageStack stack)
stack - a stack of FloatProcessors.public int getWidth()
public int getHeight()
public int getNumberOfValues()
public float[][] getPixels()
public java.awt.Rectangle getRoi()
public void setRoi(java.awt.Rectangle roi)
roi - new ROI.getRoi()public ij.gui.ProgressBar getProgressBar()
public void setProgressBar(ij.gui.ProgressBar progressBar)
public VectorProcessor.PixelIterator pixelIterator()
public VectorProcessor.Iterator iterator()
public ij.process.FloatProcessor[] toFloatProcessors()
FloatProcessor's.FloatProcessor'stoFloatStack()public ij.ImagePlus toFloatStack(java.lang.String[] labels)
labels - labels to be assigned to slice in the stack.
Number of labels must match number of pixel values (slices in the output stack).
This argument cannot be null.toFloatStack(),
toFloatProcessors()public ij.ImagePlus toFloatStack()
toFloatStack(String[]),
toFloatProcessors()public float[] get(int x,
int y)
x, y).x - xy - ypublic float[] get(int x,
int y,
float[] dest)
x, y). Use dest to store the value.x - xy - ydest - array to store pixel value, can be null.dest is not null it will be returned.public void set(int x,
int y,
float[] v)
x, y).x - xy - yv - pixel valuepublic VectorProcessor duplicate()