public class ImageDescriptor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
depth
Depth of the image.
|
int |
height
Height of the image.
|
int |
offset
Offset of the beginning of the image.
|
icy.type.DataType |
type |
int |
width
Width of the image.
|
int |
yStep
Size of a line.
|
int |
zStep
Size of a layer (z=cte).
|
| Constructor and Description |
|---|
ImageDescriptor(ImageDescriptor other)
Constructor.
|
ImageDescriptor(int width,
int height,
icy.type.DataType type)
Constructor.
|
ImageDescriptor(int width,
int height,
int depth,
icy.type.DataType type)
Constructor.
|
ImageDescriptor(icy.sequence.Sequence sequence)
Constructor.
|
ImageDescriptor(icy.sequence.Sequence sequence,
int t)
Constructor.
|
ImageDescriptor(icy.sequence.Sequence sequence,
int t,
int canal)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fill(double value) |
void |
fillImages(icy.image.IcyBufferedImage[] images,
int canal)
Copy the content of this image descriptor into an array of ICY::IcyBufferedImage.
|
double[] |
getData() |
int |
index(int x,
int y) |
int |
index(int x,
int y,
int z) |
void |
inverse()
Replace the image by its negative (assuming that the values are between 0
and 255).
|
void |
inverse(double maxValue)
Replace the image by its negative.
|
void |
setValue(int x,
int y,
double value)
Set the value of a pixel at a given position.
|
void |
setValue(int x,
int y,
int z,
double value)
Set the value of a pixel at a given position.
|
ImageDescriptor |
subImage(int x,
int y,
int width,
int height) |
ImageDescriptor |
subImage(int x,
int y,
int z,
int width,
int height,
int depth) |
double |
value(int x,
int y)
Return the value of a pixel at a given position.
|
double |
value(int x,
int y,
int z)
Return the value of a pixel at a given position.
|
public final int width
public final int height
public final int depth
public final icy.type.DataType type
public final int offset
public final int yStep
public final int zStep
public ImageDescriptor(int width,
int height,
icy.type.DataType type)
width - Width of the image.height - Height of the image.public ImageDescriptor(int width,
int height,
int depth,
icy.type.DataType type)
width - Width of the image.height - Height of the image.depth - Depth of the image.public ImageDescriptor(ImageDescriptor other)
other - Image to copy.public ImageDescriptor(icy.sequence.Sequence sequence)
sequence - Input sequence.public ImageDescriptor(icy.sequence.Sequence sequence,
int t)
sequence - Input sequence.t - Time frame of the image.public ImageDescriptor(icy.sequence.Sequence sequence,
int t,
int canal)
sequence - Input sequence.t - Time frame of the image.canal - Canal of the image to copy.public int index(int x,
int y)
public int index(int x,
int y,
int z)
public double value(int x,
int y)
public double value(int x,
int y,
int z)
public void setValue(int x,
int y,
double value)
public void setValue(int x,
int y,
int z,
double value)
public void inverse()
public double[] getData()
public void inverse(double maxValue)
maxValue - Maximum value of the image.public ImageDescriptor subImage(int x, int y, int width, int height)
public ImageDescriptor subImage(int x, int y, int z, int width, int height, int depth)
public void fill(double value)
public void fillImages(icy.image.IcyBufferedImage[] images,
int canal)
images - Array of images. Each image corresponds to a z layer.canal - Canal in which the data have to be copied.java.lang.Exception - The number of images has to be equal to the depth of the
image descriptor.