public class Sequence extends java.lang.Object implements SequenceModel, IcyColorModelListener, IcyBufferedImageListener, ChangeListener, ROIListener, OverlayListener
Sequence
is basically a 5 dimension (XYCZT) image where :IcyBufferedImage
object so Sequence
define a list of
IcyBufferedImage
where each image is associated to a Z and T
information.SequenceModel.SequenceModelListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_NAME |
static java.lang.String |
ID_CHANNEL_NAME |
static java.lang.String |
ID_NAME |
static java.lang.String |
ID_PIXEL_SIZE_X |
static java.lang.String |
ID_PIXEL_SIZE_Y |
static java.lang.String |
ID_PIXEL_SIZE_Z |
static java.lang.String |
ID_POSITION_T |
static java.lang.String |
ID_POSITION_T_OFFSET |
static java.lang.String |
ID_POSITION_X |
static java.lang.String |
ID_POSITION_Y |
static java.lang.String |
ID_POSITION_Z |
static java.lang.String |
ID_TIME_INTERVAL |
static java.lang.String |
ID_VIRTUAL |
static int |
TYPE_BYTE
Deprecated.
|
static int |
TYPE_DOUBLE
Deprecated.
|
static int |
TYPE_FLOAT
Deprecated.
|
static int |
TYPE_INT
Deprecated.
|
static int |
TYPE_SHORT
Deprecated.
|
static int |
TYPE_UNDEFINED
Deprecated.
|
Constructor and Description |
---|
Sequence()
Creates an empty sequence.
|
Sequence(java.awt.image.BufferedImage image)
Creates a sequence containing the specified image.
|
Sequence(IcyBufferedImage image)
Creates a sequence containing the specified image.
|
Sequence(ome.xml.meta.OMEXMLMetadata meta)
Creates a new empty sequence with specified metadata.
|
Sequence(loci.formats.ome.OMEXMLMetadataImpl meta)
Deprecated.
Use
Sequence(OMEXMLMetadata) instead. |
Sequence(loci.formats.ome.OMEXMLMetadataImpl meta,
java.lang.String name)
Deprecated.
Use
Sequence(OMEXMLMetadata, String) instead. |
Sequence(ome.xml.meta.OMEXMLMetadata meta,
java.lang.String name)
Creates a new empty sequence with specified meta data object and name.
|
Sequence(java.lang.String name)
Creates an empty sequence with specified name.
|
Sequence(java.lang.String name,
java.awt.image.BufferedImage image)
Creates a sequence with specified name and containing the specified image
|
Sequence(java.lang.String name,
IcyBufferedImage image)
Creates a sequence with specified name and containing the specified image
|
Modifier and Type | Method and Description |
---|---|
void |
addImage(java.awt.image.BufferedImage image)
Add an image (image is added in Z dimension).
|
void |
addImage(int t,
java.awt.image.BufferedImage image)
Add an image at specified T position.
|
void |
addListener(SequenceListener listener)
Add the specified listener to listeners list
|
boolean |
addOverlay(Overlay overlay)
Add an overlay to the sequence.
|
boolean |
addPainter(Painter painter)
Deprecated.
Use
addOverlay(Overlay) instead. |
boolean |
addROI(ROI roi)
Add the specified ROI to the sequence.
|
boolean |
addROI(ROI roi,
boolean canUndo)
Add the specified ROI to the sequence.
|
boolean |
addROIs(java.util.Collection<? extends ROI> rois,
boolean canUndo)
Add the specified collection of ROI to the sequence.
|
void |
addSequenceModelListener(SequenceModel.SequenceModelListener listener)
Add the specified
SequenceModel.SequenceModelListener to listeners list |
boolean |
addUndoableEdit(IcyUndoableEdit edit)
Add an Undoable edit to the Sequence UndoManager
|
VolumetricImage |
addVolumetricImage()
Add an empty volumetricImage at last index + 1
|
VolumetricImage |
addVolumetricImage(int t,
VolumetricImage volImg)
Add a volumetricImage at t position
It actually create a new volumetricImage and add it to the sequence The new created volumetricImage is returned |
void |
beginUpdate() |
double |
calculateSize(double pixelNumber,
int dimCompute,
int dimResult)
Returns the size in µm for the specified amount of sample/pixel value in the specified
dimension order.
|
java.lang.String |
calculateSize(double pixelNumber,
int dimCompute,
int dimResult,
int significantDigit)
Returns the size and appropriate unit in form of String for specified amount of sample/pixel
value in the specified dimension order.
|
double |
calculateSizeBestUnit(double pixelNumber,
int dimCompute,
int dimResult)
Returns the size converted in the best unit (see
getBestPixelSizeUnit(int, int) for
the specified amount of sample/pixel value in the specified dimension order. |
void |
clearUndoManager()
Clear all undo operations from the
UndoManager . |
void |
close()
This method close all attached viewers
|
void |
closed()
Called when sequence has been closed (all viewers displaying it closed).
|
void |
colorModelChanged(IcyColorModelEvent e) |
boolean |
contains(Overlay overlay)
Returns true if the sequence contains the specified overlay
|
boolean |
contains(Painter painter)
Deprecated.
Use
contains(Overlay) instead. |
boolean |
contains(ROI roi)
Returns true if the sequence contains the specified ROI
|
Sequence |
convertToType(DataType dataType,
boolean rescale)
Deprecated.
|
Sequence |
convertToType(DataType dataType,
Scaler scaler)
Deprecated.
|
Sequence |
convertToType(int dataType,
boolean signed,
boolean rescale)
Deprecated.
|
void |
copyDataFrom(Sequence source)
Copy data from the specified Sequence
|
void |
copyFrom(Sequence source,
boolean copyName)
Copy data and metadata from the specified Sequence
|
void |
copyMetaDataFrom(Sequence source,
boolean copyName)
Copy metadata from the specified Sequence
|
LUT |
createCompatibleLUT()
Creates and returns the default LUT for this sequence.
|
boolean |
createUndoDataPoint(java.lang.String name)
Create a restore point for sequence data.
|
boolean |
createUndoMetadataPoint(java.lang.String name)
Create a restore point for sequence metadata.
|
boolean |
createUndoPoint(java.lang.String name)
Create a complete restore point for this sequence.
|
void |
dataChanged()
Data has changed (global change)
Be careful, this implies all component bounds are recalculated, can be heavy ! |
void |
endUpdate() |
Sequence |
extractBand(int bandNumber)
Deprecated.
Use
SequenceUtil.extractChannel(Sequence, int) instead |
Sequence |
extractBands(java.util.List<java.lang.Integer> bandNumbers)
Deprecated.
Use
SequenceUtil.extractChannels(Sequence, List) instead |
Sequence |
extractChannel(int channelNumber)
Deprecated.
Use
SequenceUtil.extractChannel(Sequence, int) instead. |
Sequence |
extractChannels(java.util.List<java.lang.Integer> channelNumbers)
Deprecated.
Use
SequenceUtil.extractChannels(Sequence, List) instead. |
void |
fireModelDimensionChangedEvent()
fire model dimension changed event
|
void |
fireModelImageChangedEvent()
fire model image changed event
|
java.util.ArrayList<IcyBufferedImage> |
getAllImage()
Returns all images of sequence in [ZT] order:
T=0 Z=0 T=0 Z=1 T=0 Z=2 ... |
java.util.ArrayList<VolumetricImage> |
getAllVolumetricImage()
Returns all VolumetricImage
|
boolean |
getAutoUpdateChannelBounds() |
UnitUtil.UnitPrefix |
getBestPixelSizeUnit(int dimCompute,
int dimResult)
Returns the best pixel size unit for the specified dimension order given the sequence's pixel
size informations.
|
java.awt.Rectangle |
getBounds()
Deprecated.
Use
getBounds2D() instead |
java.awt.Rectangle |
getBounds2D()
Returns 2D bounds of sequence {0, 0, sizeX, sizeY}
|
Rectangle5D.Integer |
getBounds5D()
Returns 5D bounds of sequence {0, 0, 0, 0, 0, sizeX, sizeY, sizeZ, sizeT, sizeC}
|
double[] |
getChannelBounds(int channel)
Get bounds (min and max values) in the whole sequence for the specified channel.
|
double |
getChannelMax(int channel)
Get maximum value in the whole sequence for the specified channel.
|
double |
getChannelMin(int channel)
Get the minimum value in the whole sequence for the specified channel.
|
java.lang.String |
getChannelName(int index)
Get name for specified channel
|
double[][] |
getChannelsBounds()
Get bounds (min and max values) in the whole sequence for all channels.
|
double[] |
getChannelsGlobalBounds()
Get global bounds (min and max values) in the whole sequence for all channels.
|
double[] |
getChannelsGlobalTypeBounds()
Get the global preferred data type bounds (min and max values) for all channels.
|
double[][] |
getChannelsTypeBounds()
Get the preferred data type bounds (min and max values) in the whole sequence for all
channels.
|
double[] |
getChannelTypeBounds(int channel)
Get the preferred data type bounds (min and max values) in the whole sequence for the
specified channel.
|
double[] |
getChannelTypeGlobalBounds()
Deprecated.
Use
getChannelsGlobalTypeBounds() instead |
double |
getChannelTypeMax(int channel)
Get the preferred data type maximum value in the whole sequence for the specified channel.
|
double |
getChannelTypeMin(int channel)
Get the preferred data type minimum value in the whole sequence for the specified channel.
|
IcyColorMap |
getColorMap(int channel)
Get the user colormap for the specified channel.
|
IcyColorModel |
getColorModel()
Returns the colorModel
|
double[] |
getComponentAbsBounds(int component)
Deprecated.
Use
getChannelTypeBounds(int) instead. |
double |
getComponentAbsMaxValue(int component)
Deprecated.
Use
getChannelTypeMax(int) instead. |
double |
getComponentAbsMinValue(int component)
Deprecated.
Use
getChannelTypeMin(int) instead. |
double[][] |
getComponentsAbsBounds()
Deprecated.
Use
getChannelsTypeBounds() instead. |
double[][] |
getComponentsUserBounds()
Deprecated.
Use
getChannelsBounds() instead. |
double[] |
getComponentUserBounds(int component)
Deprecated.
Use
getChannelBounds(int) instead. |
double |
getComponentUserMaxValue(int component)
Deprecated.
Use
getChannelMax(int) instead. |
double |
getComponentUserMinValue(int component)
Deprecated.
Use
getChannelMin(int) instead. |
Sequence |
getCopy()
Deprecated.
Use
SequenceUtil.getCopy(Sequence) instead. |
double |
getData(int t,
int z,
int c,
int y,
int x)
Returns the data value located at position (t, z, c, y, x) as double.
|
java.lang.Object |
getDataCopyC(int t,
int z,
int x,
int y)
Returns a 1D array data copy [C] of specified t, z, x, y
|
java.lang.Object |
getDataCopyC(int t,
int z,
int x,
int y,
java.lang.Object out,
int off)
Returns a 1D array data copy [C] of specified t, z, x, y
If (out ! |
byte[] |
getDataCopyCAsByte(int t,
int z,
int x,
int y)
Returns a 1D array data copy [C] of specified t, z, x, y
|
byte[] |
getDataCopyCAsByte(int t,
int z,
int x,
int y,
byte[] out,
int off)
Returns a 1D array data copy [C] of specified t, z, x, y
If (out ! |
double[] |
getDataCopyCAsDouble(int t,
int z,
int x,
int y)
Returns a 1D array data copy [C] of specified t, z, x, y
|
double[] |
getDataCopyCAsDouble(int t,
int z,
int x,
int y,
double[] out,
int off)
Returns a 1D array data copy [C] of specified t, z, x, y
If (out ! |
float[] |
getDataCopyCAsFloat(int t,
int z,
int x,
int y)
Returns a 1D array data copy [C] of specified t, z, x, y
|
float[] |
getDataCopyCAsFloat(int t,
int z,
int x,
int y,
float[] out,
int off)
Returns a 1D array data copy [C] of specified t, z, x, y
If (out ! |
int[] |
getDataCopyCAsInt(int t,
int z,
int x,
int y)
Returns a 1D array data copy [C] of specified t, z, x, y
|
int[] |
getDataCopyCAsInt(int t,
int z,
int x,
int y,
int[] out,
int off)
Returns a 1D array data copy [C] of specified t, z, x, y
If (out ! |
short[] |
getDataCopyCAsShort(int t,
int z,
int x,
int y)
Returns a 1D array data copy [C] of specified t, z, x, y
|
short[] |
getDataCopyCAsShort(int t,
int z,
int x,
int y,
short[] out,
int off)
Returns a 1D array data copy [C] of specified t, z, x, y
If (out ! |
java.lang.Object |
getDataCopyCXY(int t,
int z)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
|
java.lang.Object |
getDataCopyCXY(int t,
int z,
java.lang.Object out,
int off)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
If (out ! |
byte[] |
getDataCopyCXYAsByte(int t,
int z)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
|
byte[] |
getDataCopyCXYAsByte(int t,
int z,
byte[] out,
int off)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
If (out ! |
double[] |
getDataCopyCXYAsDouble(int t,
int z)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
|
double[] |
getDataCopyCXYAsDouble(int t,
int z,
double[] out,
int off)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
If (out ! |
float[] |
getDataCopyCXYAsFloat(int t,
int z)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
|
float[] |
getDataCopyCXYAsFloat(int t,
int z,
float[] out,
int off)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
If (out ! |
int[] |
getDataCopyCXYAsInt(int t,
int z)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
|
int[] |
getDataCopyCXYAsInt(int t,
int z,
int[] out,
int off)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
If (out ! |
short[] |
getDataCopyCXYAsShort(int t,
int z)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
|
short[] |
getDataCopyCXYAsShort(int t,
int z,
short[] out,
int off)
Returns a 1D array data copy [CXY] of internal 2D array data [C][XY] for specified t, z
If (out ! |
java.lang.Object |
getDataCopyCXYZ(int t)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
|
java.lang.Object |
getDataCopyCXYZ(int t,
java.lang.Object out,
int off)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
byte[] |
getDataCopyCXYZAsByte(int t)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
|
byte[] |
getDataCopyCXYZAsByte(int t,
byte[] out,
int off)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
double[] |
getDataCopyCXYZAsDouble(int t)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
|
double[] |
getDataCopyCXYZAsDouble(int t,
double[] out,
int off)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
float[] |
getDataCopyCXYZAsFloat(int t)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
|
float[] |
getDataCopyCXYZAsFloat(int t,
float[] out,
int off)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
int[] |
getDataCopyCXYZAsInt(int t)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
|
int[] |
getDataCopyCXYZAsInt(int t,
int[] out,
int off)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
short[] |
getDataCopyCXYZAsShort(int t)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
|
short[] |
getDataCopyCXYZAsShort(int t,
short[] out,
int off)
Returns a 1D array data copy [CXYZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
java.lang.Object |
getDataCopyCXYZT()
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
|
java.lang.Object |
getDataCopyCXYZT(java.lang.Object out,
int off)
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
byte[] |
getDataCopyCXYZTAsByte()
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
|
byte[] |
getDataCopyCXYZTAsByte(byte[] out,
int off)
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
double[] |
getDataCopyCXYZTAsDouble()
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
|
double[] |
getDataCopyCXYZTAsDouble(double[] out,
int off)
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
float[] |
getDataCopyCXYZTAsFloat()
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
|
float[] |
getDataCopyCXYZTAsFloat(float[] out,
int off)
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
int[] |
getDataCopyCXYZTAsInt()
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
|
int[] |
getDataCopyCXYZTAsInt(int[] out,
int off)
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
short[] |
getDataCopyCXYZTAsShort()
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
|
short[] |
getDataCopyCXYZTAsShort(short[] out,
int off)
Returns a 1D array data copy [CXYZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
java.lang.Object |
getDataCopyXY(int t,
int z,
int c)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
|
java.lang.Object |
getDataCopyXY(int t,
int z,
int c,
java.lang.Object out,
int off)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
If (out ! |
byte[] |
getDataCopyXYAsByte(int t,
int z,
int c)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
|
byte[] |
getDataCopyXYAsByte(int t,
int z,
int c,
byte[] out,
int off)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
If (out ! |
double[] |
getDataCopyXYAsDouble(int t,
int z,
int c)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
|
double[] |
getDataCopyXYAsDouble(int t,
int z,
int c,
double[] out,
int off)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
If (out ! |
float[] |
getDataCopyXYAsFloat(int t,
int z,
int c)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
|
float[] |
getDataCopyXYAsFloat(int t,
int z,
int c,
float[] out,
int off)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
If (out ! |
int[] |
getDataCopyXYAsInt(int t,
int z,
int c)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
|
int[] |
getDataCopyXYAsInt(int t,
int z,
int c,
int[] out,
int off)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
If (out ! |
short[] |
getDataCopyXYAsShort(int t,
int z,
int c)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
|
short[] |
getDataCopyXYAsShort(int t,
int z,
int c,
short[] out,
int off)
Returns a 1D array data copy [XY] of internal 1D array data [XY] for specified t, z, c
If (out ! |
java.lang.Object |
getDataCopyXYC(int t,
int z)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
|
java.lang.Object |
getDataCopyXYC(int t,
int z,
java.lang.Object out,
int off)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
If (out ! |
byte[] |
getDataCopyXYCAsByte(int t,
int z)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
|
byte[] |
getDataCopyXYCAsByte(int t,
int z,
byte[] out,
int off)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
If (out ! |
double[] |
getDataCopyXYCAsDouble(int t,
int z)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
|
double[] |
getDataCopyXYCAsDouble(int t,
int z,
double[] out,
int off)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
If (out ! |
float[] |
getDataCopyXYCAsFloat(int t,
int z)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
|
float[] |
getDataCopyXYCAsFloat(int t,
int z,
float[] out,
int off)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
If (out ! |
int[] |
getDataCopyXYCAsInt(int t,
int z)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
|
int[] |
getDataCopyXYCAsInt(int t,
int z,
int[] out,
int off)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
If (out ! |
short[] |
getDataCopyXYCAsShort(int t,
int z)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
|
short[] |
getDataCopyXYCAsShort(int t,
int z,
short[] out,
int off)
Returns a 1D array data copy [XYC] of internal 2D array data [C][XY] for specified t, z
If (out ! |
java.lang.Object |
getDataCopyXYCZ(int t)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
|
java.lang.Object |
getDataCopyXYCZ(int t,
java.lang.Object out,
int off)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
byte[] |
getDataCopyXYCZAsByte(int t)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
|
byte[] |
getDataCopyXYCZAsByte(int t,
byte[] out,
int off)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
double[] |
getDataCopyXYCZAsDouble(int t)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
|
double[] |
getDataCopyXYCZAsDouble(int t,
double[] out,
int off)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
float[] |
getDataCopyXYCZAsFloat(int t)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
|
float[] |
getDataCopyXYCZAsFloat(int t,
float[] out,
int off)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
int[] |
getDataCopyXYCZAsInt(int t)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
|
int[] |
getDataCopyXYCZAsInt(int t,
int[] out,
int off)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
short[] |
getDataCopyXYCZAsShort(int t)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
|
short[] |
getDataCopyXYCZAsShort(int t,
short[] out,
int off)
Returns a 1D array data copy [XYCZ] of internal 3D array data [Z][C][XY] for specified t
If (out ! |
java.lang.Object |
getDataCopyXYCZT()
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
|
java.lang.Object |
getDataCopyXYCZT(java.lang.Object out,
int off)
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
byte[] |
getDataCopyXYCZTAsByte()
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
|
byte[] |
getDataCopyXYCZTAsByte(byte[] out,
int off)
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
double[] |
getDataCopyXYCZTAsDouble()
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
|
double[] |
getDataCopyXYCZTAsDouble(double[] out,
int off)
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
float[] |
getDataCopyXYCZTAsFloat()
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
|
float[] |
getDataCopyXYCZTAsFloat(float[] out,
int off)
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
int[] |
getDataCopyXYCZTAsInt()
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
|
int[] |
getDataCopyXYCZTAsInt(int[] out,
int off)
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
short[] |
getDataCopyXYCZTAsShort()
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
|
short[] |
getDataCopyXYCZTAsShort(short[] out,
int off)
Returns a 1D array data copy [XYCZT] of internal 4D array data [T][Z][C][XY]
If (out ! |
java.lang.Object |
getDataCopyXYZ(int t,
int c)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
|
java.lang.Object |
getDataCopyXYZ(int t,
int c,
java.lang.Object out,
int off)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
If (out ! |
byte[] |
getDataCopyXYZAsByte(int t,
int c)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
|
byte[] |
getDataCopyXYZAsByte(int t,
int c,
byte[] out,
int off)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
If (out ! |
double[] |
getDataCopyXYZAsDouble(int t,
int c)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
|
double[] |
getDataCopyXYZAsDouble(int t,
int c,
double[] out,
int off)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
If (out ! |
float[] |
getDataCopyXYZAsFloat(int t,
int c)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
|
float[] |
getDataCopyXYZAsFloat(int t,
int c,
float[] out,
int off)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
If (out ! |
int[] |
getDataCopyXYZAsInt(int t,
int c)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
|
int[] |
getDataCopyXYZAsInt(int t,
int c,
int[] out,
int off)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
If (out ! |
short[] |
getDataCopyXYZAsShort(int t,
int c)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
|
short[] |
getDataCopyXYZAsShort(int t,
int c,
short[] out,
int off)
Returns a 1D array data copy [XYZ] of internal 2D array data [Z][XY] for specified t, c
If (out ! |
java.lang.Object |
getDataCopyXYZT(int c)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
|
java.lang.Object |
getDataCopyXYZT(int c,
java.lang.Object out,
int off)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
If (out ! |
byte[] |
getDataCopyXYZTAsByte(int c)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
|
byte[] |
getDataCopyXYZTAsByte(int c,
byte[] out,
int off)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
If (out ! |
double[] |
getDataCopyXYZTAsDouble(int c)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
|
double[] |
getDataCopyXYZTAsDouble(int c,
double[] out,
int off)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
If (out ! |
float[] |
getDataCopyXYZTAsFloat(int c)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
|
float[] |
getDataCopyXYZTAsFloat(int c,
float[] out,
int off)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
If (out ! |
int[] |
getDataCopyXYZTAsInt(int c)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
|
int[] |
getDataCopyXYZTAsInt(int c,
int[] out,
int off)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
If (out ! |
short[] |
getDataCopyXYZTAsShort(int c)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
|
short[] |
getDataCopyXYZTAsShort(int c,
short[] out,
int off)
Returns a 1D array data copy [XYZT] of internal 3D array data [T][Z][XY] for specified c
If (out ! |
double |
getDataInterpolated(int t,
double z,
int c,
double y,
double x)
Returns the data value located at position (t, z, c, y, x) as double.
|
DataType |
getDataType_()
Returns the data type of sequence
|
int |
getDataType()
Deprecated.
use
getDataType_() instead |
double[] |
getDataTypeBounds()
Get data type bounds (min and max values).
|
double |
getDataTypeMax()
Get the data type maximum value.
|
double |
getDataTypeMin()
Get the data type minimum value.
|
java.lang.Object |
getDataXY(int t,
int z,
int c)
Returns a direct reference to 1D array data [XY] for specified t, z, c
|
byte[] |
getDataXYAsByte(int t,
int z,
int c)
Returns a direct reference to 1D byte array data [XY] for specified t, z, c
|
double[] |
getDataXYAsDouble(int t,
int z,
int c)
Returns a direct reference to 1D byte array data [XY] for specified t, z, c
|
float[] |
getDataXYAsFloat(int t,
int z,
int c)
Returns a direct reference to 1D byte array data [XY] for specified t, z, c
|
int[] |
getDataXYAsInt(int t,
int z,
int c)
Returns a direct reference to 1D byte array data [XY] for specified t, z, c
|
short[] |
getDataXYAsShort(int t,
int z,
int c)
Returns a direct reference to 1D byte array data [XY] for specified t, z, c
|
java.lang.Object |
getDataXYC(int t,
int z)
Returns a direct reference to 2D array data [C][XY] for specified t, z
|
byte[][] |
getDataXYCAsByte(int t,
int z)
Returns a direct reference to 2D byte array data [C][XY] for specified t, z
|
double[][] |
getDataXYCAsDouble(int t,
int z)
Returns a direct reference to 2D byte array data [C][XY] for specified t, z
|
float[][] |
getDataXYCAsFloat(int t,
int z)
Returns a direct reference to 2D byte array data [C][XY] for specified t, z
|
int[][] |
getDataXYCAsInt(int t,
int z)
Returns a direct reference to 2D byte array data [C][XY] for specified t, z
|
short[][] |
getDataXYCAsShort(int t,
int z)
Returns a direct reference to 2D byte array data [C][XY] for specified t, z
|
java.lang.Object |
getDataXYCZ(int t)
Returns a direct reference to 3D array data [Z][C][XY] for specified t
|
byte[][][] |
getDataXYCZAsByte(int t)
Returns a direct reference to 3D byte array data [Z][C][XY] for specified t
|
double[][][] |
getDataXYCZAsDouble(int t)
Returns a direct reference to 3D byte array data [Z][C][XY] for specified t
|
float[][][] |
getDataXYCZAsFloat(int t)
Returns a direct reference to 3D byte array data [Z][C][XY] for specified t
|
int[][][] |
getDataXYCZAsInt(int t)
Returns a direct reference to 3D byte array data [Z][C][XY] for specified t
|
short[][][] |
getDataXYCZAsShort(int t)
Returns a direct reference to 3D byte array data [Z][C][XY] for specified t
|
java.lang.Object |
getDataXYCZT()
Returns a direct reference to 4D array data [T][Z][C][XY]
|
byte[][][][] |
getDataXYCZTAsByte()
Returns a direct reference to 4D byte array data [T][Z][C][XY]
|
double[][][][] |
getDataXYCZTAsDouble()
Returns a direct reference to 4D byte array data [T][Z][C][XY]
|
float[][][][] |
getDataXYCZTAsFloat()
Returns a direct reference to 4D byte array data [T][Z][C][XY]
|
int[][][][] |
getDataXYCZTAsInt()
Returns a direct reference to 4D byte array data [T][Z][C][XY]
|
short[][][][] |
getDataXYCZTAsShort()
Returns a direct reference to 4D byte array data [T][Z][C][XY]
|
java.lang.Object |
getDataXYZ(int t,
int c)
Returns a direct reference to 2D byte array data [Z][XY] for specified t, c
|
byte[][] |
getDataXYZAsByte(int t,
int c)
Returns a direct reference to 2D byte array data [Z][XY] for specified t, c
|
double[][] |
getDataXYZAsDouble(int t,
int c)
Returns a direct reference to 2D byte array data [Z][XY] for specified t, c
|
float[][] |
getDataXYZAsFloat(int t,
int c)
Returns a direct reference to 2D byte array data [Z][XY] for specified t, c
|
int[][] |
getDataXYZAsInt(int t,
int c)
Returns a direct reference to 2D byte array data [Z][XY] for specified t, c
|
short[][] |
getDataXYZAsShort(int t,
int c)
Returns a direct reference to 2D byte array data [Z][XY] for specified t, c
|
java.lang.Object |
getDataXYZT(int c)
Returns a direct reference to 3D byte array data [T][Z][XY] for specified c
|
byte[][][] |
getDataXYZTAsByte(int c)
Returns a direct reference to 3D byte array data [T][Z][XY] for specified c
|
double[][][] |
getDataXYZTAsDouble(int c)
Returns a direct reference to 3D byte array data [T][Z][XY] for specified c
|
float[][][] |
getDataXYZTAsFloat(int c)
Returns a direct reference to 3D byte array data [T][Z][XY] for specified c
|
int[][][] |
getDataXYZTAsInt(int c)
Returns a direct reference to 3D byte array data [T][Z][XY] for specified c
|
short[][][] |
getDataXYZTAsShort(int c)
Returns a direct reference to 3D byte array data [T][Z][XY] for specified c
|
java.lang.String |
getDefaultChannelName(int index)
Get default name for specified channel
|
IcyColorMap |
getDefaultColorMap(int channel)
Get the default colormap for the specified channel
|
LUT |
getDefaultLUT()
Same as
createCompatibleLUT() |
int |
getDepth()
Deprecated.
|
java.awt.Dimension |
getDimension()
Deprecated.
Use
getDimension2D() instead. |
java.awt.Dimension |
getDimension2D()
Returns 2D dimension of sequence {sizeX, sizeY}
|
Dimension5D.Integer |
getDimension5D()
Returns 5D dimension of sequence {sizeX, sizeY, sizeZ, sizeT, sizeC}
|
java.lang.String |
getFilename()
Returns the origin filename (from/to which the sequence has been loaded/saved).
|
IcyBufferedImage |
getFirstImage()
Returns the first image of first VolumetricImage
|
IcyBufferedImage |
getFirstNonNullImage()
Returns the first non null image if exist
|
Viewer |
getFirstViewer()
Returns first viewer attached to this sequence
|
ROI |
getFocusedROI()
Returns the current focused ROI (null if no ROI focused)
|
double[] |
getGlobalChannelTypeBounds()
Deprecated.
Use
getChannelTypeGlobalBounds() instead. |
double[] |
getGlobalComponentAbsBounds()
Deprecated.
Use
getChannelsGlobalTypeBounds() instead. |
int |
getHeight()
Same as
getSizeY() |
int |
getId()
get sequence id (this id is unique during an ICY session)
|
IcyBufferedImage |
getImage(int t,
int z)
Returns image at time t and depth z
|
IcyBufferedImage |
getImage(int t,
int z,
boolean loadData)
Returns image at time t and depth z.
|
IcyBufferedImage |
getImage(int t,
int z,
int c)
Returns a single component image corresponding to the component c of the image
at time t and depth z.
|
ImageProvider |
getImageProvider()
Returns the
ImageProvider used to load the sequence data. |
java.util.ArrayList<IcyBufferedImage> |
getImages(int t)
Returns all images at specified t position
|
IcyBufferedImage |
getLastImage()
Returns the last image of last VolumetricImage
|
IcyBufferedImage |
getLastImage(int t)
Returns the last image of VolumetricImage[t]
|
int |
getLength()
Deprecated.
|
SequenceListener[] |
getListeners()
Get listeners list
|
loci.formats.ome.OMEXMLMetadataImpl |
getMetadata()
Deprecated.
Use
getOMEXMLMetadata() instead. |
java.lang.String |
getName() |
org.w3c.dom.Node |
getNode(java.lang.String name)
Get XML data node identified by specified name.
|
int |
getNumComponents()
Deprecated.
|
int |
getNumImage()
return the number of loaded image
|
int |
getNumSample()
Returns the number of sample.
|
ome.xml.meta.OMEXMLMetadata |
getOMEXMLMetadata()
Returns meta data object
|
int |
getOriginChannel()
Returns the channel position from original image if this image is a single channel extraction of the original
image.
|
int |
getOriginResolution()
Returns the resolution level from the origin image (defined by
getFilename() ). |
int |
getOriginTMax()
Returns the T range maximum from original image if this image is a crop in T of the original image.
|
int |
getOriginTMin()
Returns the T range minimum from original image if this image is a crop in T of the original image.
|
java.awt.Rectangle |
getOriginXYRegion()
Returns the region (X,Y) from original image if this image is a crop of the original image (in original image
resolution).
|
int |
getOriginZMax()
Returns the Z range maximum from original image if this image is a crop in Z of the original image.
|
int |
getOriginZMin()
Returns the Z range minimum from original image if this image is a crop in Z of the original image.
|
java.lang.String |
getOutputBaseName(java.lang.String folderExt)
Returns the output base filename.
|
java.lang.String |
getOutputExtension()
Returns the output filename extension (not the file extension, just extension from base name).
|
java.lang.String |
getOutputFilename(boolean withExtension)
Return the desired output filename for this Sequence.
|
java.util.List<Overlay> |
getOverlays()
Returns all overlays attached to this sequence
|
<T extends Overlay> |
getOverlays(java.lang.Class<T> overlayClass)
Returns overlays of specified class attached to this sequence
|
java.util.Set<Overlay> |
getOverlaySet()
Returns all overlays attached to this sequence (HashSet form)
|
java.util.ArrayList<Painter> |
getPainters()
Deprecated.
Use
getOverlays() instead. |
java.util.List<Painter> |
getPainters(java.lang.Class<? extends Painter> painterClass)
Deprecated.
Use
getOverlays(Class) instead. |
java.util.HashSet<Painter> |
getPainterSet()
Deprecated.
Use
getOverlaySet() instead. |
double[] |
getPixelSize()
Returns pixel size for [X,Y,Z] dimension (in µm to be OME compatible)
|
double |
getPixelSizeScaling(int dimCompute,
int dimResult)
Returns the pixel size scaling factor to convert a number of pixel/voxel unit into
µm For instance to get the scale ration for 2D distance: valueMicroMeter = pixelNum * getPixelSizeScaling(2, 1) For a 2D surface: valueMicroMeter2 = pixelNum * getPixelSizeScaling(2, 2) For a 3D volume: valueMicroMeter3 = pixelNum * getPixelSizeScaling(3, 3) |
double |
getPixelSizeX()
Returns X pixel size (in µm to be OME compatible)
|
double |
getPixelSizeY()
Returns Y pixel size (in µm to be OME compatible)
|
double |
getPixelSizeZ()
Returns Z pixel size (in µm to be OME compatible)
|
double[] |
getPosition()
Returns the physical position [X,Y,Z] (in µm) of the image represented by this Sequence.
|
long |
getPositionT()
Same as
getTimeStamp() |
double |
getPositionTOffset(int t,
int z,
int c)
Returns the time position offset (in second for OME compatibility) relative to first image for the image at specified (T,Z,C) position.
|
double |
getPositionX()
Returns the X physical position / offset (in µm) of the image represented by this Sequence.
|
double |
getPositionY()
Returns the Y physical position / offset (in µm) of the image represented by this Sequence.
|
double |
getPositionZ()
Returns the Z physical position / offset (in µm) of the image represented by this Sequence.
|
java.util.ArrayList<ROI2D> |
getROI2Ds()
Returns all 2D ROIs attached to this sequence.
|
java.util.List<ROI2D> |
getROI2Ds(boolean sorted)
Returns all 2D ROIs attached to this sequence.
|
java.util.ArrayList<ROI3D> |
getROI3Ds()
Returns all 3D ROIs attached to this sequence.
|
java.util.List<ROI3D> |
getROI3Ds(boolean sorted)
Returns all 3D ROIs attached to this sequence.
|
int |
getROICount(java.lang.Class<? extends ROI> roiClass)
Returns the number of ROI of specified ROI class attached to the sequence.
|
java.util.ArrayList<ROI> |
getROIs()
Returns all ROIs attached to this sequence.
|
java.util.List<ROI> |
getROIs(boolean sorted)
Returns all ROIs attached to this sequence.
|
java.util.List<ROI> |
getROIs(java.lang.Class<? extends ROI> roiClass)
Deprecated.
Use
getROIs(Class, boolean) instead |
<T extends ROI> |
getROIs(java.lang.Class<T> roiClass,
boolean sorted)
Returns ROIs of specified class attached to this sequence
|
java.util.HashSet<ROI> |
getROISet()
Returns all ROIs attached to this sequence (HashSet form)
|
ROI |
getSelectedROI()
Returns the first selected ROI found (null if no ROI selected)
|
ROI2D |
getSelectedROI2D()
Returns the first selected 2D ROI found (null if no 2D ROI selected)
|
java.util.ArrayList<ROI2D> |
getSelectedROI2Ds()
Returns all selected 2D ROI
|
ROI3D |
getSelectedROI3D()
Returns the first selected 3D ROI found (null if no 3D ROI selected)
|
java.util.ArrayList<ROI3D> |
getSelectedROI3Ds()
Returns all selected 3D ROI
|
java.util.ArrayList<ROI> |
getSelectedROIs()
Returns all selected ROI
|
java.util.List<ROI> |
getSelectedROIs(java.lang.Class<? extends ROI> roiClass,
boolean wantReadOnly)
Returns all selected ROI of given class.
|
<T extends ROI> |
getSelectedROIs(java.lang.Class<T> roiClass,
boolean sorted,
boolean wantReadOnly)
Returns all selected ROI of given class.
|
java.util.Set<ROI> |
getSelectedROISet()
Returns all selected ROI (Set format).
|
java.util.Set<ROI> |
getSelectedROISet(java.lang.Class<? extends ROI> roiClass,
boolean wantReadOnly)
Returns all selected ROI of given class (Set format).
|
<T extends ROI> |
getSelectedROISet(java.lang.Class<T> roiClass)
Returns all selected ROI of given class (Set format).
|
int |
getSerieIndex()
Deprecated.
Use
getSeries() instead |
int |
getSeries()
Returns series index if the Sequence comes from a multi serie image.
|
int |
getSize(DimensionId dim)
Returns the size of the specified dimension
|
int |
getSizeC()
Returns the number of component/channel/band per image
|
int |
getSizeT()
return the number of volumetricImage in the sequence
|
int |
getSizeX()
Returns the width of the sequence (0 if the sequence contains no image).
|
int |
getSizeY()
Returns the height of the sequence (0 if the sequence contains no image).
|
int |
getSizeZ()
Returns the global number of z stack in the sequence.
|
int |
getSizeZ(int t)
Returns the number of z stack for the volumetricImage[t].
|
Sequence |
getSubSequence(int startX,
int startY,
int startZ,
int startT,
int sizeX,
int sizeY,
int sizeZ,
int sizeT)
Deprecated.
|
double |
getTimeInterval()
Returns T time interval (in second for OME compatibility)
|
long |
getTimeStamp()
Returns the timestamp (elapsed milliseconds from the Java epoch of 1970-01-01 T00:00:00Z) of the image represented by this Sequence.
|
IcyUndoManager |
getUndoManager()
Get the Undo manager of this sequence
|
LUT |
getUserLUT()
Returns the users LUT.
|
java.util.ArrayList<Viewer> |
getViewers()
Returns viewers attached to this sequence
|
VolumetricImage |
getVolumetricImage(int t)
Returns the VolumetricImage at position t
|
java.util.TreeMap<java.lang.Integer,VolumetricImage> |
getVolumetricImages()
Returns all VolumetricImage as TreeMap (contains t position)
|
int |
getWidth()
Same as
getSizeX() |
boolean |
hasOverlay()
Returns true if the sequence contains at least one Overlay.
|
boolean |
hasOverlay(java.lang.Class<? extends Overlay> overlayClass)
Returns true if the sequence contains Overlay of specified Overlay class.
|
boolean |
hasPainter()
Deprecated.
Use
hasOverlay() instead. |
boolean |
hasROI()
Returns true if the sequence contains at least one ROI.
|
boolean |
hasROI(java.lang.Class<? extends ROI> roiClass)
Returns true if the sequence contains ROI of specified ROI class.
|
boolean |
hasSelectedROI()
Returns true if the sequence contains at least one selected ROI.
|
boolean |
hasUserLUT()
Returns
true if a user LUT has be defined for this sequence. |
void |
imageChanged(IcyBufferedImageEvent e) |
boolean |
isAWTDispatching()
Deprecated.
Don't use it, events should stay on current thread
|
boolean |
isCompatible(IcyBufferedImage image)
Test if the specified image is compatible with current loaded images in sequence
|
boolean |
isCompatible(IcyColorModel cm)
Test if the specified colorModel is compatible with sequence colorModel
|
boolean |
isComponentAbsBoundsAutoUpdate()
Deprecated.
Use
getAutoUpdateChannelBounds() instead. |
boolean |
isComponentUserBoundsAutoUpdate()
Deprecated.
Use
getAutoUpdateChannelBounds() instead. |
boolean |
isDefaultChannelName(int index)
Returns true is the specified channel uses default attributed name
|
boolean |
isDefaultName()
Returns true if the sequence uses default attributed name
|
boolean |
isEmpty()
return true if no image in sequence
|
boolean |
isFloatDataType()
Returns true if this is a float data type sequence
|
boolean |
isLutCompatible(LUT lut)
Returns true if specified LUT is compatible with sequence LUT
|
org.w3c.dom.Node |
isNodeExisting(java.lang.String name)
Returns true if the specified XML data node exist
|
boolean |
isSignedDataType()
Returns true if this is a signed data type sequence
|
boolean |
isUpdating() |
boolean |
isVirtual()
Same as
isVolatile() |
boolean |
isVolatile()
Returns true if this sequence contains volatile image (see
IcyBufferedImage.isVolatile() ). |
void |
loadAllData()
Force all image data to be loaded (so channels bounds can be correctly computed).
|
boolean |
loadXMLData()
Load XML persistent data from file.
|
void |
metaChanged(java.lang.String metaName)
sequence meta has changed
|
void |
metaChanged(java.lang.String metaName,
int param)
sequence meta has changed
|
void |
onChanged(CollapsibleEvent e)
process on sequence change
|
void |
onImageAdded(IcyBufferedImage image)
Do common job on "image add" here
|
void |
onImageRemoved(IcyBufferedImage image)
Do common job on "image remove" here
|
void |
onImageReplaced(IcyBufferedImage oldImage,
IcyBufferedImage newImage)
Do common job on "image replaced" here
|
void |
overlayChanged(Overlay overlay)
Notify specified painter of overlay has changed (the sequence should contains the specified
Overlay)
|
void |
overlayChanged(OverlayEvent event)
Called when an overlay has changed (internal method).
|
void |
packImageList()
Remove empty element of image list
|
void |
painterChanged(Painter painter)
Deprecated.
Use
overlayChanged(Overlay) instead. |
boolean |
redo()
Redo the next Undoable change set in the Sequence
UndoManager |
void |
refreshXMLData()
Synchronize XML data with sequence data :
This function refresh all the meta data and ROIs of the sequence and put it in the current XML document. |
void |
removeAllImage()
Deprecated.
Use
removeAllImages() instead. |
boolean |
removeAllImage(int t)
Deprecated.
Use
removeAllImages(int) instead. |
void |
removeAllImages()
Remove all images
|
boolean |
removeAllImages(int t)
Remove all images at position
t |
void |
removeAllROI()
Remove all ROI from the sequence.
|
void |
removeAllROI(boolean canUndo)
Remove all ROI from the sequence.
|
boolean |
removeImage(int t,
int z)
Remove the image at the specified position.
|
void |
removeListener(SequenceListener listener)
Remove the specified listener from listeners list
|
boolean |
removeOverlay(Overlay overlay)
Remove an overlay from the sequence.
|
boolean |
removePainter(Painter painter)
Deprecated.
Use
removeOverlay(Overlay) instead. |
boolean |
removeROI(ROI roi)
Remove the specified ROI from the sequence.
|
boolean |
removeROI(ROI roi,
boolean canUndo)
Remove the specified ROI from the sequence.
|
boolean |
removeROIs(java.util.Collection<? extends ROI> rois,
boolean canUndo)
Remove the specified collection of ROI from the sequence.
|
boolean |
removeSelectedROIs(boolean removeReadOnly)
Remove all selected ROI from the sequence.
|
boolean |
removeSelectedROIs(boolean removeReadOnly,
boolean canUndo)
Remove all selected ROI from the sequence.
|
void |
removeSequenceModelListener(SequenceModel.SequenceModelListener listener)
Remove the specified
SequenceModel.SequenceModelListener from listeners
list |
boolean |
removeVolumetricImage(int t)
Deprecated.
Use
removeAllImages(int) instead. |
void |
resetOriginInformation()
Reset origin information (used after saved operation normally, internal use only).
|
void |
roiChanged()
Deprecated.
Use
roiChanged(ROI) method instead. |
void |
roiChanged(ROI roi)
Notify specified roi has changed (the sequence should contains the specified ROI)
|
void |
roiChanged(ROIEvent event) |
boolean |
saveXMLData()
Save attached XML data.
|
void |
setAutoUpdateChannelBounds(boolean value)
If set to
true (default) then channel bounds will be automatically recalculated
when sequence data is modified. |
void |
setAWTDispatching(boolean value)
Deprecated.
Don't use it, events should stay on current thread
|
void |
setChannelName(int index,
java.lang.String value)
Set name for specified channel
|
void |
setColormap(int channel,
IcyColorMap map)
Set the user colormap for the specified channel.
|
void |
setColormap(int channel,
IcyColorMap map,
boolean setAlpha)
Set the user colormap for the specified channel.
|
void |
setComponentAbsBoundsAutoUpdate(boolean value)
Deprecated.
Use
setAutoUpdateChannelBounds(boolean) instead. |
void |
setComponentUserBoundsAutoUpdate(boolean value)
Deprecated.
Use
setAutoUpdateChannelBounds(boolean) instead. |
void |
setDataXY(int t,
int z,
int c,
java.lang.Object value)
Sets 1D array data [XY] for specified t, z, c
|
void |
setDefaultColormap(int channel,
IcyColorMap map)
Set the default colormap for the specified channel
|
void |
setDefaultColormap(int channel,
IcyColorMap map,
boolean setAlpha)
Set the default colormap for the specified channel
|
void |
setFilename(java.lang.String filename)
Set the origin filename (from/to which the sequence has been loaded/saved).
|
boolean |
setFocusedROI(ROI roi)
Set the focused ROI
|
void |
setImage(int t,
int z,
java.awt.image.BufferedImage image)
Set an image at the specified position.
|
void |
setImageProvider(ImageProvider value)
Set the
ImageProvider used to load the sequence data. |
void |
setMetaData(ome.xml.meta.OMEXMLMetadata metaData)
Set the meta data object
|
void |
setMetaData(loci.formats.ome.OMEXMLMetadataImpl metaData)
Deprecated.
Use
setMetaData(OMEXMLMetadata) instead. |
void |
setName(java.lang.String value)
Sequence name
|
org.w3c.dom.Node |
setNode(java.lang.String name)
Deprecated.
Use
getNode(String) instead. |
void |
setOriginChannel(int value)
Internal use only, you should not directly use this method.
|
void |
setOriginResolution(int value)
Internal use only, you should not directly use this method.
|
void |
setOriginTMax(int value)
Internal use only, you should not directly use this method.
|
void |
setOriginTMin(int value)
Internal use only, you should not directly use this method.
|
void |
setOriginXYRegion(java.awt.Rectangle value)
Internal use only, you should not directly use this method.
|
void |
setOriginZMax(int value)
Internal use only, you should not directly use this method.
|
void |
setOriginZMin(int value)
Internal use only, you should not directly use this method.
|
void |
setPixelSizeX(double value)
Set X pixel size (in µm to be OME compatible)
|
void |
setPixelSizeY(double value)
Set Y pixel size (in µm to be OME compatible)
|
void |
setPixelSizeZ(double value)
Set Z pixel size (in µm to be OME compatible)
|
void |
setPositionT(long value)
Same as
setTimeStamp(long) |
void |
setPositionTOffset(int t,
int z,
int c,
double value)
Sets the time position / offset (in second for OME compatibility) relative to first image for the image at specified (T,Z,C) position.
|
void |
setPositionX(double value)
Sets the X physical position / offset (in µm) of the image represented by this Sequence.
|
void |
setPositionY(double value)
Sets the X physical position / offset (in µm) of the image represented by this Sequence.
|
void |
setPositionZ(double value)
Sets the X physical position / offset (in µm) of the image represented by this Sequence.
|
boolean |
setSelectedROI(ROI roi)
Set the selected ROI (exclusive selection).
|
boolean |
setSelectedROI(ROI roi,
boolean exclusive)
Deprecated.
Use
setSelectedROI(ROI) instead. |
void |
setSelectedROIs(java.util.ArrayList<ROI> selected)
Deprecated.
Use
setSelectedROIs(List) instead. |
void |
setSelectedROIs(java.util.List<? extends ROI> selected)
Set selected ROI (unselected all others)
|
void |
setSeries(int value)
Set series index if the Sequence comes from a multi serie image (internal use only).
|
void |
setT(int t)
Deprecated.
Use this piece of code instead :
for(Viewer v: Icy.getMainInterface().getViewers(sequence))
v.setT(...) |
void |
setTimeInterval(double value)
Set T time resolution (in second to be OME compatible)
|
void |
setTimeStamp(long value)
Sets the timestamp (elapsed milliseconds from the Java epoch of 1970-01-01 T00:00:00Z) for the image represented by this Sequence.
|
void |
setUserLUT(LUT lut)
Sets the user LUT (saved in XML persistent metadata).
|
void |
setVirtual(boolean value)
Same as
setVolatile(boolean) |
void |
setVolatile(boolean value)
Set the volatile state for this Sequence (see
IcyBufferedImage.setVolatile(boolean) ). |
java.lang.String |
toString() |
boolean |
undo()
Undo to the last Undoable change set in the Sequence
UndoManager |
void |
updateChannelsBounds()
Update channels bounds (min and max values).
|
void |
updateChannelsBounds(boolean forceRecalculation)
Update channels bounds (min and max values).
|
void |
updateComponentsBounds()
Deprecated.
Use
updateChannelsBounds(boolean) instead. |
void |
updateComponentsBounds(boolean forceRecalculation)
Deprecated.
Use
updateChannelsBounds(boolean) instead. |
void |
updateComponentsBounds(boolean forceRecalculation,
boolean adjustByteToo)
Deprecated.
Use
updateChannelsBounds(boolean) instead. |
public static final java.lang.String DEFAULT_NAME
@Deprecated public static final int TYPE_BYTE
@Deprecated public static final int TYPE_DOUBLE
@Deprecated public static final int TYPE_FLOAT
@Deprecated public static final int TYPE_INT
@Deprecated public static final int TYPE_SHORT
@Deprecated public static final int TYPE_UNDEFINED
public static final java.lang.String ID_NAME
public static final java.lang.String ID_POSITION_X
public static final java.lang.String ID_POSITION_Y
public static final java.lang.String ID_POSITION_Z
public static final java.lang.String ID_POSITION_T
public static final java.lang.String ID_POSITION_T_OFFSET
public static final java.lang.String ID_PIXEL_SIZE_X
public static final java.lang.String ID_PIXEL_SIZE_Y
public static final java.lang.String ID_PIXEL_SIZE_Z
public static final java.lang.String ID_TIME_INTERVAL
public static final java.lang.String ID_CHANNEL_NAME
public static final java.lang.String ID_VIRTUAL
public Sequence(ome.xml.meta.OMEXMLMetadata meta, java.lang.String name)
@Deprecated public Sequence(loci.formats.ome.OMEXMLMetadataImpl meta, java.lang.String name)
Sequence(OMEXMLMetadata, String)
instead.public Sequence(java.lang.String name, IcyBufferedImage image)
public Sequence(java.lang.String name, java.awt.image.BufferedImage image)
@Deprecated public Sequence(loci.formats.ome.OMEXMLMetadataImpl meta)
Sequence(OMEXMLMetadata)
instead.public Sequence(ome.xml.meta.OMEXMLMetadata meta)
public Sequence(IcyBufferedImage image)
public Sequence(java.awt.image.BufferedImage image)
public Sequence(java.lang.String name)
public Sequence()
public void close()
public void closed()
public void copyFrom(Sequence source, boolean copyName)
source
- the source sequence to copy data fromcopyName
- if set to true
it will also copy the name from the source sequencepublic void copyDataFrom(Sequence source)
public void copyMetaDataFrom(Sequence source, boolean copyName)
source
- the source sequence to copy metadata fromcopyName
- if set to true
it will also copy the name from the source sequencepublic boolean createUndoPoint(java.lang.String name)
name
- restore point name (visible in the History panel)undo()
public boolean createUndoDataPoint(java.lang.String name)
name
- restore point name (visible in the History panel)undo()
public boolean createUndoMetadataPoint(java.lang.String name)
name
- restore point name (visible in the History panel)undo()
public boolean addUndoableEdit(IcyUndoableEdit edit)
edit
- the undoable edit to addfalse
if the operation failedpublic boolean undo()
UndoManager
true
if the operation succeedcreateUndoPoint(String)
,
UndoManager.undo()
public boolean redo()
UndoManager
true
if the operation succeedcreateUndoPoint(String)
,
UndoManager.redo()
public void clearUndoManager()
UndoManager
.@Deprecated public Sequence convertToType(DataType dataType, boolean rescale)
SequenceUtil.convertToType(Sequence, DataType, boolean)
instead.@Deprecated public Sequence convertToType(DataType dataType, Scaler scaler)
SequenceUtil.convertType(Sequence, DataType, Scaler[])
instead.@Deprecated public Sequence convertToType(int dataType, boolean signed, boolean rescale)
SequenceUtil.convertToType(Sequence, DataType, boolean)
instead@Deprecated public Sequence extractChannel(int channelNumber)
SequenceUtil.extractChannel(Sequence, int)
instead.@Deprecated public Sequence extractChannels(java.util.List<java.lang.Integer> channelNumbers)
SequenceUtil.extractChannels(Sequence, List)
instead.@Deprecated public Sequence extractBand(int bandNumber)
SequenceUtil.extractChannel(Sequence, int)
instead@Deprecated public Sequence extractBands(java.util.List<java.lang.Integer> bandNumbers)
SequenceUtil.extractChannels(Sequence, List)
insteadpublic java.util.TreeMap<java.lang.Integer,VolumetricImage> getVolumetricImages()
public java.util.ArrayList<VolumetricImage> getAllVolumetricImage()
public Viewer getFirstViewer()
public java.util.ArrayList<Viewer> getViewers()
public void setVolatile(boolean value) throws java.lang.OutOfMemoryError, java.lang.UnsupportedOperationException
IcyBufferedImage.setVolatile(boolean)
).java.lang.OutOfMemoryError
- if there is not enough memory available to store image
data when setting back to non volatile statejava.lang.UnsupportedOperationException
- if cache engine is not initialized (error at initialization).public void setVirtual(boolean value) throws java.lang.OutOfMemoryError, java.lang.UnsupportedOperationException
setVolatile(boolean)
java.lang.OutOfMemoryError
- if there is not enough memory available to store image
data when setting back to non volatile statejava.lang.UnsupportedOperationException
- if cache engine is not initialized (error at initialization).public boolean isVolatile()
IcyBufferedImage.isVolatile()
).public boolean isVirtual()
isVolatile()
public int getId()
public void setName(java.lang.String value)
public java.lang.String getName()
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- the filename to setpublic ImageProvider getImageProvider()
ImageProvider
used to load the sequence data.null
if the Sequence was not loaded from a specific resource or if it was saved in between.ImageProvider
used to load the Sequencepublic void setImageProvider(ImageProvider value)
ImageProvider
used to load the sequence data.SequenceIdImporter
).ImageProvider
.public java.lang.String getOutputBaseName(java.lang.String folderExt)
folderExt
- If the filename of this sequence refer a folder then we extend it with 'folderExt' to build the base name.getOutputExtension()
public java.lang.String getOutputExtension()
getOutputBaseName(String)
public java.lang.String getOutputFilename(boolean withExtension)
withExtension
- Add the original file extension is set to true
getFilename()
,
getOutputBaseName(String)
,
getOutputExtension()
public int getOriginResolution()
getFilename()
).public void setOriginResolution(int value)
getOriginResolution()
public java.awt.Rectangle getOriginXYRegion()
null
(full size).public void setOriginXYRegion(java.awt.Rectangle value)
getOriginXYRegion()
public int getOriginZMin()
public void setOriginZMin(int value)
getOriginZMin()
public int getOriginZMax()
public void setOriginZMax(int value)
getOriginZMax()
public int getOriginTMin()
public void setOriginTMin(int value)
getOriginTMin()
public int getOriginTMax()
public void setOriginTMax(int value)
getOriginTMax()
public int getOriginChannel()
public void setOriginChannel(int value)
getOriginChannel()
public void resetOriginInformation()
public int getSeries()
public void setSeries(int value)
@Deprecated public int getSerieIndex()
getSeries()
insteadpublic ome.xml.meta.OMEXMLMetadata getOMEXMLMetadata()
public void setMetaData(ome.xml.meta.OMEXMLMetadata metaData)
@Deprecated public loci.formats.ome.OMEXMLMetadataImpl getMetadata()
getOMEXMLMetadata()
instead.@Deprecated public void setMetaData(loci.formats.ome.OMEXMLMetadataImpl metaData)
setMetaData(OMEXMLMetadata)
instead.public double[] getPosition()
public double getPositionX()
public double getPositionY()
public double getPositionZ()
public long getPositionT()
getTimeStamp()
public long getTimeStamp()
public double getPositionTOffset(int t, int z, int c)
getTimeInterval()
,
getTimeStamp()
public void setPositionX(double value)
public void setPositionY(double value)
public void setPositionZ(double value)
public void setPositionT(long value)
setTimeStamp(long)
public void setTimeStamp(long value)
public void setPositionTOffset(int t, int z, int c, double value)
setTimeInterval(double)
,
setTimeStamp(long)
public double[] getPixelSize()
public double getPixelSizeX()
public double getPixelSizeY()
public double getPixelSizeZ()
public double getTimeInterval()
getPositionTOffset(int, int, int)
public void setPixelSizeX(double value)
public void setPixelSizeY(double value)
public void setPixelSizeZ(double value)
public void setTimeInterval(double value)
public double getPixelSizeScaling(int dimCompute, int dimResult)
µm
valueMicroMeter = pixelNum * getPixelSizeScaling(2, 1)
valueMicroMeter2 = pixelNum * getPixelSizeScaling(2, 2)
valueMicroMeter3 = pixelNum * getPixelSizeScaling(3, 3)
dimCompute
- dimension order for size calculationdimResult
- dimension order for the result (unit)public UnitUtil.UnitPrefix getBestPixelSizeUnit(int dimCompute, int dimResult)
dimCompute = 2; dimUnit = 1; valueMicroMeter = pixelNum * getPixelSizeScaling(dimCompute); bestUnit = getBestPixelSizeUnit(dimCompute, dimUnit); finalValue = UnitUtil.getValueInUnit(valueMicroMeter, UnitPrefix.MICRO, bestUnit); valueString = Double.toString(finalValue) + " " + bestUnit.toString() + "m";
dimCompute = 2; dimUnit = 2; valueMicroMeter = pixelNum * getPixelSizeScaling(dimCompute); bestUnit = getBestPixelSizeUnit(dimCompute, dimUnit); finalValue = UnitUtil.getValueInUnit(valueMicroMeter, UnitPrefix.MICRO, bestUnit); valueString = Double.toString(finalValue) + " " + bestUnit.toString() + "m2";
dimCompute = 3; dimUnit = 3; valueMicroMeter = pixelNum * getPixelSizeScaling(dimCompute); bestUnit = getBestPixelSizeUnit(dimCompute, dimUnit); finalValue = UnitUtil.getValueInUnit(valueMicroMeter, UnitPrefix.MICRO, bestUnit); valueString = Double.toString(finalValue) + " " + bestUnit.toString() + "m3";
dimCompute
- dimension order for size calculationdimResult
- dimension order for the result (unit)calculateSizeBestUnit(double, int, int)
public double calculateSize(double pixelNumber, int dimCompute, int dimResult)
perimeter = calculateSize(contourInPixel, 2, 1)
surface = calculateSize(interiorInPixel, 2, 2)
volume = calculateSize(contourInPixel, 3, 2)
volume = calculateSize(interiorInPixel, 3, 3)
pixelNumber
- number of pixeldimCompute
- dimension order for size calculationdimResult
- dimension order for the result (unit)calculateSizeBestUnit(double, int, int)
public double calculateSizeBestUnit(double pixelNumber, int dimCompute, int dimResult)
getBestPixelSizeUnit(int, int)
for
the specified amount of sample/pixel value in the specified dimension order.dimCompute = 2; dimUnit = 1; valueBestUnit = calculateSizeBestUnit(pixelNum, dimCompute, dimUnit); bestUnit = getBestPixelSizeUnit(dimCompute, dimUnit); valueString = Double.toString(valueBestUnit) + " " + bestUnit.toString() + "m";
dimCompute = 2; dimUnit = 2; valueBestUnit = calculateSizeBestUnit(pixelNum, dimCompute, dimUnit); bestUnit = getBestPixelSizeUnit(dimCompute, dimUnit); valueString = Double.toString(valueBestUnit) + " " + bestUnit.toString() + "m2";
dimCompute = 3; dimUnit = 3; valueBestUnit = calculateSizeBestUnit(pixelNum, dimCompute, dimUnit); bestUnit = getBestPixelSizeUnit(dimCompute, dimUnit); valueString = Double.toString(valueBestUnit) + " " + bestUnit.toString() + "m3";
pixelNumber
- number of pixeldimCompute
- dimension order for size calculationdimResult
- dimension order for the result (unit)calculateSize(double, int, int)
,
getBestPixelSizeUnit(int, int)
public java.lang.String calculateSize(double pixelNumber, int dimCompute, int dimResult, int significantDigit)
distanceStr = calculateSize(distanceInPixel, 2, 1, 5)
surfaceStr = calculateSize(surfaceInPixel, 2, 2, 5)
volumeStr = calculateSize(volumeInPixel, 3, 3, 5)
pixelNumber
- number of pixeldimCompute
- dimension order for the calculationdimResult
- dimension order for the result (unit)significantDigit
- wanted significant digit for the result (0 for all)calculateSize(double, int, int)
public java.lang.String getDefaultChannelName(int index)
public java.lang.String getChannelName(int index)
public void setChannelName(int index, java.lang.String value)
@Deprecated public boolean isComponentAbsBoundsAutoUpdate()
getAutoUpdateChannelBounds()
instead.@Deprecated public void setComponentAbsBoundsAutoUpdate(boolean value)
setAutoUpdateChannelBounds(boolean)
instead.public boolean getAutoUpdateChannelBounds()
setAutoUpdateChannelBounds(boolean)
public void setAutoUpdateChannelBounds(boolean value)
true
(default) then channel bounds will be automatically recalculated
when sequence data is modified.beginUpdate()
... endUpdate()
block to avoid
severals recalculation.@Deprecated public boolean isComponentUserBoundsAutoUpdate()
getAutoUpdateChannelBounds()
instead.@Deprecated public void setComponentUserBoundsAutoUpdate(boolean value)
setAutoUpdateChannelBounds(boolean)
instead.@Deprecated public boolean isAWTDispatching()
@Deprecated public void setAWTDispatching(boolean value)
public void addListener(SequenceListener listener)
public void removeListener(SequenceListener listener)
public SequenceListener[] getListeners()
public void addSequenceModelListener(SequenceModel.SequenceModelListener listener)
SequenceModel.SequenceModelListener
to listeners listaddSequenceModelListener
in interface SequenceModel
public void removeSequenceModelListener(SequenceModel.SequenceModelListener listener)
SequenceModel.SequenceModelListener
from listeners
listremoveSequenceModelListener
in interface SequenceModel
public IcyUndoManager getUndoManager()
@Deprecated public boolean contains(Painter painter)
contains(Overlay)
instead.public boolean contains(Overlay overlay)
@Deprecated public boolean hasPainter()
hasOverlay()
instead.@Deprecated public java.util.ArrayList<Painter> getPainters()
getOverlays()
instead.@Deprecated public java.util.HashSet<Painter> getPainterSet()
getOverlaySet()
instead.@Deprecated public java.util.List<Painter> getPainters(java.lang.Class<? extends Painter> painterClass)
getOverlays(Class)
instead.public boolean hasOverlay()
public java.util.List<Overlay> getOverlays()
public java.util.Set<Overlay> getOverlaySet()
public boolean hasOverlay(java.lang.Class<? extends Overlay> overlayClass)
public <T extends Overlay> java.util.List<T> getOverlays(java.lang.Class<T> overlayClass)
public boolean hasROI()
public java.util.List<ROI> getROIs(boolean sorted)
sorted
- If true the returned list is ordered by the ROI id (creation order).public java.util.HashSet<ROI> getROISet()
public java.util.List<ROI2D> getROI2Ds(boolean sorted)
sorted
- If true the returned list is ordered by the ROI id (creation order).public java.util.ArrayList<ROI2D> getROI2Ds()
public java.util.List<ROI3D> getROI3Ds(boolean sorted)
sorted
- If true the returned list is ordered by the ROI id (creation order).public java.util.ArrayList<ROI3D> getROI3Ds()
public boolean hasROI(java.lang.Class<? extends ROI> roiClass)
public <T extends ROI> java.util.List<T> getROIs(java.lang.Class<T> roiClass, boolean sorted)
@Deprecated public java.util.List<ROI> getROIs(java.lang.Class<? extends ROI> roiClass)
getROIs(Class, boolean)
insteadpublic int getROICount(java.lang.Class<? extends ROI> roiClass)
public boolean hasSelectedROI()
public ROI getSelectedROI()
public ROI2D getSelectedROI2D()
public ROI3D getSelectedROI3D()
public java.util.Set<ROI> getSelectedROISet(java.lang.Class<? extends ROI> roiClass, boolean wantReadOnly)
roiClass
- ROI class restrictionwantReadOnly
- also return ROI with read only statepublic <T extends ROI> java.util.Set<T> getSelectedROISet(java.lang.Class<T> roiClass)
roiClass
- ROI class restrictionpublic java.util.Set<ROI> getSelectedROISet()
public <T extends ROI> java.util.List<T> getSelectedROIs(java.lang.Class<T> roiClass, boolean sorted, boolean wantReadOnly)
roiClass
- ROI class restrictionsorted
- If true the returned list is ordered by the ROI id (creation order)wantReadOnly
- also return ROI with read only statepublic java.util.List<ROI> getSelectedROIs(java.lang.Class<? extends ROI> roiClass, boolean wantReadOnly)
roiClass
- ROI class restrictionwantReadOnly
- also return ROI with read only statepublic java.util.ArrayList<ROI> getSelectedROIs()
public java.util.ArrayList<ROI2D> getSelectedROI2Ds()
public java.util.ArrayList<ROI3D> getSelectedROI3Ds()
public ROI getFocusedROI()
public boolean setSelectedROI(ROI roi)
null
ROI here will actually clear all ROI selection.setSelectedROIs(List)
or ROI.setSelected(boolean)
for
multiple ROI selection.roi
- the ROI to select.false
is the specified ROI is not attached to the sequence.@Deprecated public boolean setSelectedROI(ROI roi, boolean exclusive)
setSelectedROI(ROI)
instead.@Deprecated public void setSelectedROIs(java.util.ArrayList<ROI> selected)
setSelectedROIs(List)
instead.public void setSelectedROIs(java.util.List<? extends ROI> selected)
public boolean setFocusedROI(ROI roi)
public boolean addROIs(java.util.Collection<? extends ROI> rois, boolean canUndo)
rois
- the collection of ROI to attach to the sequencecanUndo
- If true the action can be canceled by the undo manager.true
if the operation succeed or false
if some ROIs could
not be added (already present)public boolean addROI(ROI roi)
roi
- ROI to attach to the sequencepublic boolean addROI(ROI roi, boolean canUndo)
roi
- ROI to attach to the sequencecanUndo
- If true the action can be canceled by the undo manager.true
if the operation succeed or false
otherwise (already
present)public boolean removeROI(ROI roi)
roi
- ROI to detach from the sequencepublic boolean removeROI(ROI roi, boolean canUndo)
roi
- ROI to detach from the sequencecanUndo
- If true the action can be canceled by the undo manager.false
if the ROI was not found in the sequence.true
otherwise.public boolean removeROIs(java.util.Collection<? extends ROI> rois, boolean canUndo)
rois
- the collection of ROI to remove from the sequencecanUndo
- If true the action can be canceled by the undo manager.true
if all ROI from the collection has been correctly removed.public boolean removeSelectedROIs(boolean removeReadOnly)
removeReadOnly
- Specify if we should also remove read only ROI (see ROI.isReadOnly()
)true
if at least one ROI was removed.false
otherwisepublic boolean removeSelectedROIs(boolean removeReadOnly, boolean canUndo)
removeReadOnly
- Specify if we should also remove read only ROI (see ROI.isReadOnly()
)canUndo
- If true the action can be canceled by the undo manager.true
if at least one ROI was removed.false
otherwisepublic void removeAllROI()
public void removeAllROI(boolean canUndo)
canUndo
- If true the action can be canceled by the undo manager.@Deprecated public boolean addPainter(Painter painter)
addOverlay(Overlay)
instead.@Deprecated public boolean removePainter(Painter painter)
removeOverlay(Overlay)
instead.public boolean addOverlay(Overlay overlay)
public boolean removeOverlay(Overlay overlay)
public VolumetricImage getVolumetricImage(int t)
public VolumetricImage addVolumetricImage()
public VolumetricImage addVolumetricImage(int t, VolumetricImage volImg)
@Deprecated public boolean removeVolumetricImage(int t)
removeAllImages(int)
instead.public IcyBufferedImage getLastImage(int t)
public IcyBufferedImage getFirstImage()
public IcyBufferedImage getFirstNonNullImage()
public IcyBufferedImage getLastImage()
public IcyBufferedImage getImage(int t, int z, int c)
(c == -1)
then this method is equivalent to getImage(int, int)
((c == 0) || (sizeC == 1))
then this method is equivalent to getImage(int, int)
((c < 0) || (c >= sizeC))
then it returns null
getImage
in interface SequenceModel
IcyBufferedImageUtil.extractChannel(IcyBufferedImage, int)
public IcyBufferedImage getImage(int t, int z, boolean loadData)
loadData
- if true
then we ensure that image data is loaded (in case of lazy loading) before returning the imagepublic IcyBufferedImage getImage(int t, int z)
getImage
in interface SequenceModel
public java.util.ArrayList<IcyBufferedImage> getImages(int t)
public java.util.ArrayList<IcyBufferedImage> getAllImage()
T=0 Z=0 T=0 Z=1 T=0 Z=2 ... T=1 Z=0 ...
public void setImage(int t, int z, java.awt.image.BufferedImage image) throws java.lang.IllegalArgumentException
t
- T positionz
- Z positionimage
- the image to setjava.lang.IllegalArgumentException
public void addImage(java.awt.image.BufferedImage image) throws java.lang.IllegalArgumentException
setImage(max(getSizeT() - 1, 0), getSizeZ(t), image)
java.lang.IllegalArgumentException
public void addImage(int t, java.awt.image.BufferedImage image) throws java.lang.IllegalArgumentException
setImage(t, getSizeZ(t), image)
java.lang.IllegalArgumentException
public boolean removeImage(int t, int z)
public boolean removeAllImages(int t)
t
public void removeAllImages()
@Deprecated public boolean removeAllImage(int t)
removeAllImages(int)
instead.@Deprecated public void removeAllImage()
removeAllImages()
instead.public void packImageList()
public int getNumImage()
public boolean isEmpty()
public boolean isDefaultName()
public boolean isDefaultChannelName(int index)
@Deprecated public int getLength()
getSizeT()
public int getSizeT()
getSizeT
in interface SequenceModel
@Deprecated public int getDepth()
getSizeZ()
public int getSizeZ()
getSizeZ
in interface SequenceModel
public int getSizeZ(int t)
@Deprecated public int getNumComponents()
getSizeC()
public int getSizeC()
getSizeC
in interface SequenceModel
public int getHeight()
getSizeY()
public int getSizeY()
getSizeY
in interface SequenceModel
public int getWidth()
getSizeX()
public int getSizeX()
getSizeX
in interface SequenceModel
public int getSize(DimensionId dim)
public java.awt.Dimension getDimension2D()
public Dimension5D.Integer getDimension5D()
@Deprecated public java.awt.Dimension getDimension()
getDimension2D()
instead.public java.awt.Rectangle getBounds2D()
getDimension2D()
public Rectangle5D.Integer getBounds5D()
getDimension5D()
@Deprecated public java.awt.Rectangle getBounds()
getBounds2D()
insteadpublic int getNumSample()
getSizeX() * getSizeY() * getSizeC() * getSizeZ() * getSizeT()
public boolean isCompatible(IcyBufferedImage image)
public boolean isCompatible(IcyColorModel cm)
public boolean isLutCompatible(LUT lut)
public IcyColorModel getColorModel()
public LUT getDefaultLUT()
createCompatibleLUT()
public boolean hasUserLUT()
true
if a user LUT has be defined for this sequence.public LUT getUserLUT()
getDefaultLUT()
public void setUserLUT(LUT lut)
public LUT createCompatibleLUT()
public IcyColorMap getDefaultColorMap(int channel)
channel
- channel we want to set the colormapgetColorMap(int)
public void setDefaultColormap(int channel, IcyColorMap map, boolean setAlpha)
channel
- channel we want to set the colormapmap
- source colormap to copysetAlpha
- also copy the alpha informationgetDefaultColorMap(int)
public void setDefaultColormap(int channel, IcyColorMap map)
channel
- channel we want to set the colormapmap
- source colormap to copygetDefaultColorMap(int)
public IcyColorMap getColorMap(int channel)
channel
- channel we want to set the colormapgetDefaultColorMap(int)
public void setColormap(int channel, IcyColorMap map, boolean setAlpha)
channel
- channel we want to set the colormapmap
- source colormap to copysetAlpha
- also copy the alpha informationgetColorMap(int)
public void setColormap(int channel, IcyColorMap map)
channel
- channel we want to set the colormapmap
- source colormap to copygetColorMap(int)
public DataType getDataType_()
@Deprecated public int getDataType()
getDataType_()
insteadpublic boolean isFloatDataType()
public boolean isSignedDataType()
public void updateChannelsBounds(boolean forceRecalculation)
forceRecalculation
- If true we force all images channels bounds recalculation (this can take sometime). public void updateChannelsBounds()
@Deprecated public void updateComponentsBounds(boolean forceRecalculation, boolean adjustByteToo)
updateChannelsBounds(boolean)
instead.@Deprecated public void updateComponentsBounds(boolean forceRecalculation)
updateChannelsBounds(boolean)
instead.@Deprecated public void updateComponentsBounds()
updateChannelsBounds(boolean)
instead.public double getDataTypeMin()
public double getDataTypeMax()
public double[] getDataTypeBounds()
public double getChannelTypeMin(int channel)
public double getChannelTypeMax(int channel)
public double[] getChannelTypeBounds(int channel)
public double[][] getChannelsTypeBounds()
public double[] getChannelsGlobalTypeBounds()
@Deprecated public double[] getChannelTypeGlobalBounds()
getChannelsGlobalTypeBounds()
instead@Deprecated public double[] getGlobalChannelTypeBounds()
getChannelTypeGlobalBounds()
instead.@Deprecated public double getComponentAbsMinValue(int component)
getChannelTypeMin(int)
instead.@Deprecated public double getComponentAbsMaxValue(int component)
getChannelTypeMax(int)
instead.@Deprecated public double[] getComponentAbsBounds(int component)
getChannelTypeBounds(int)
instead.@Deprecated public double[][] getComponentsAbsBounds()
getChannelsTypeBounds()
instead.@Deprecated public double[] getGlobalComponentAbsBounds()
getChannelsGlobalTypeBounds()
instead.public double getChannelMin(int channel)
public double getChannelMax(int channel)
public double[] getChannelBounds(int channel)
public double[][] getChannelsBounds()
public double[] getChannelsGlobalBounds()
@Deprecated public double getComponentUserMinValue(int component)
getChannelMin(int)
instead.@Deprecated public double getComponentUserMaxValue(int component)
getChannelMax(int)
instead.@Deprecated public double[] getComponentUserBounds(int component)
getChannelBounds(int)
instead.@Deprecated public double[][] getComponentsUserBounds()
getChannelsBounds()
instead.public void loadAllData()
public double getData(int t, int z, int c, int y, int x)
public double getDataInterpolated(int t, double z, int c, double y, double x)
public java.lang.Object getDataXYCZT()
public java.lang.Object getDataXYCZ(int t)
public java.lang.Object getDataXYC(int t, int z)
public java.lang.Object getDataXY(int t, int z, int c)
public java.lang.Object getDataXYZT(int c)
public java.lang.Object getDataXYZ(int t, int c)
public java.lang.Object getDataCopyXYCZT()
public java.lang.Object getDataCopyXYCZT(java.lang.Object out, int off)
public java.lang.Object getDataCopyXYCZ(int t)
public java.lang.Object getDataCopyXYCZ(int t, java.lang.Object out, int off)
public java.lang.Object getDataCopyXYC(int t, int z)
public java.lang.Object getDataCopyXYC(int t, int z, java.lang.Object out, int off)
public java.lang.Object getDataCopyXY(int t, int z, int c)
public java.lang.Object getDataCopyXY(int t, int z, int c, java.lang.Object out, int off)
public java.lang.Object getDataCopyCXYZT()
public java.lang.Object getDataCopyCXYZT(java.lang.Object out, int off)
public java.lang.Object getDataCopyCXYZ(int t)
public java.lang.Object getDataCopyCXYZ(int t, java.lang.Object out, int off)
public java.lang.Object getDataCopyCXY(int t, int z)
public java.lang.Object getDataCopyCXY(int t, int z, java.lang.Object out, int off)
public java.lang.Object getDataCopyC(int t, int z, int x, int y)
public java.lang.Object getDataCopyC(int t, int z, int x, int y, java.lang.Object out, int off)
public java.lang.Object getDataCopyXYZT(int c)
public java.lang.Object getDataCopyXYZT(int c, java.lang.Object out, int off)
public java.lang.Object getDataCopyXYZ(int t, int c)
public java.lang.Object getDataCopyXYZ(int t, int c, java.lang.Object out, int off)
public byte[][][][] getDataXYCZTAsByte()
public short[][][][] getDataXYCZTAsShort()
public int[][][][] getDataXYCZTAsInt()
public float[][][][] getDataXYCZTAsFloat()
public double[][][][] getDataXYCZTAsDouble()
public byte[][][] getDataXYCZAsByte(int t)
public short[][][] getDataXYCZAsShort(int t)
public int[][][] getDataXYCZAsInt(int t)
public float[][][] getDataXYCZAsFloat(int t)
public double[][][] getDataXYCZAsDouble(int t)
public byte[][] getDataXYCAsByte(int t, int z)
public short[][] getDataXYCAsShort(int t, int z)
public int[][] getDataXYCAsInt(int t, int z)
public float[][] getDataXYCAsFloat(int t, int z)
public double[][] getDataXYCAsDouble(int t, int z)
public byte[] getDataXYAsByte(int t, int z, int c)
public short[] getDataXYAsShort(int t, int z, int c)
public int[] getDataXYAsInt(int t, int z, int c)
public float[] getDataXYAsFloat(int t, int z, int c)
public double[] getDataXYAsDouble(int t, int z, int c)
public byte[][][] getDataXYZTAsByte(int c)
public short[][][] getDataXYZTAsShort(int c)
public int[][][] getDataXYZTAsInt(int c)
public float[][][] getDataXYZTAsFloat(int c)
public double[][][] getDataXYZTAsDouble(int c)
public byte[][] getDataXYZAsByte(int t, int c)
public short[][] getDataXYZAsShort(int t, int c)
public int[][] getDataXYZAsInt(int t, int c)
public float[][] getDataXYZAsFloat(int t, int c)
public double[][] getDataXYZAsDouble(int t, int c)
public byte[] getDataCopyXYCZTAsByte()
public byte[] getDataCopyXYCZTAsByte(byte[] out, int off)
public short[] getDataCopyXYCZTAsShort()
public short[] getDataCopyXYCZTAsShort(short[] out, int off)
public int[] getDataCopyXYCZTAsInt()
public int[] getDataCopyXYCZTAsInt(int[] out, int off)
public float[] getDataCopyXYCZTAsFloat()
public float[] getDataCopyXYCZTAsFloat(float[] out, int off)
public double[] getDataCopyXYCZTAsDouble()
public double[] getDataCopyXYCZTAsDouble(double[] out, int off)
public byte[] getDataCopyXYCZAsByte(int t)
public byte[] getDataCopyXYCZAsByte(int t, byte[] out, int off)
public short[] getDataCopyXYCZAsShort(int t)
public short[] getDataCopyXYCZAsShort(int t, short[] out, int off)
public int[] getDataCopyXYCZAsInt(int t)
public int[] getDataCopyXYCZAsInt(int t, int[] out, int off)
public float[] getDataCopyXYCZAsFloat(int t)
public float[] getDataCopyXYCZAsFloat(int t, float[] out, int off)
public double[] getDataCopyXYCZAsDouble(int t)
public double[] getDataCopyXYCZAsDouble(int t, double[] out, int off)
public byte[] getDataCopyXYCAsByte(int t, int z)
public byte[] getDataCopyXYCAsByte(int t, int z, byte[] out, int off)
public short[] getDataCopyXYCAsShort(int t, int z)
public short[] getDataCopyXYCAsShort(int t, int z, short[] out, int off)
public int[] getDataCopyXYCAsInt(int t, int z)
public int[] getDataCopyXYCAsInt(int t, int z, int[] out, int off)
public float[] getDataCopyXYCAsFloat(int t, int z)
public float[] getDataCopyXYCAsFloat(int t, int z, float[] out, int off)
public double[] getDataCopyXYCAsDouble(int t, int z)
public double[] getDataCopyXYCAsDouble(int t, int z, double[] out, int off)
public byte[] getDataCopyXYAsByte(int t, int z, int c)
public byte[] getDataCopyXYAsByte(int t, int z, int c, byte[] out, int off)
public short[] getDataCopyXYAsShort(int t, int z, int c)
public short[] getDataCopyXYAsShort(int t, int z, int c, short[] out, int off)
public int[] getDataCopyXYAsInt(int t, int z, int c)
public int[] getDataCopyXYAsInt(int t, int z, int c, int[] out, int off)
public float[] getDataCopyXYAsFloat(int t, int z, int c)
public float[] getDataCopyXYAsFloat(int t, int z, int c, float[] out, int off)
public double[] getDataCopyXYAsDouble(int t, int z, int c)
public double[] getDataCopyXYAsDouble(int t, int z, int c, double[] out, int off)
public byte[] getDataCopyCXYZTAsByte()
public byte[] getDataCopyCXYZTAsByte(byte[] out, int off)
public short[] getDataCopyCXYZTAsShort()
public short[] getDataCopyCXYZTAsShort(short[] out, int off)
public int[] getDataCopyCXYZTAsInt()
public int[] getDataCopyCXYZTAsInt(int[] out, int off)
public float[] getDataCopyCXYZTAsFloat()
public float[] getDataCopyCXYZTAsFloat(float[] out, int off)
public double[] getDataCopyCXYZTAsDouble()
public double[] getDataCopyCXYZTAsDouble(double[] out, int off)
public byte[] getDataCopyCXYZAsByte(int t)
public byte[] getDataCopyCXYZAsByte(int t, byte[] out, int off)
public short[] getDataCopyCXYZAsShort(int t)
public short[] getDataCopyCXYZAsShort(int t, short[] out, int off)
public int[] getDataCopyCXYZAsInt(int t)
public int[] getDataCopyCXYZAsInt(int t, int[] out, int off)
public float[] getDataCopyCXYZAsFloat(int t)
public float[] getDataCopyCXYZAsFloat(int t, float[] out, int off)
public double[] getDataCopyCXYZAsDouble(int t)
public double[] getDataCopyCXYZAsDouble(int t, double[] out, int off)
public byte[] getDataCopyCXYAsByte(int t, int z)
public byte[] getDataCopyCXYAsByte(int t, int z, byte[] out, int off)
public short[] getDataCopyCXYAsShort(int t, int z)
public short[] getDataCopyCXYAsShort(int t, int z, short[] out, int off)
public int[] getDataCopyCXYAsInt(int t, int z)
public int[] getDataCopyCXYAsInt(int t, int z, int[] out, int off)
public float[] getDataCopyCXYAsFloat(int t, int z)
public float[] getDataCopyCXYAsFloat(int t, int z, float[] out, int off)
public double[] getDataCopyCXYAsDouble(int t, int z)
public double[] getDataCopyCXYAsDouble(int t, int z, double[] out, int off)
public byte[] getDataCopyCAsByte(int t, int z, int x, int y)
public byte[] getDataCopyCAsByte(int t, int z, int x, int y, byte[] out, int off)
public short[] getDataCopyCAsShort(int t, int z, int x, int y)
public short[] getDataCopyCAsShort(int t, int z, int x, int y, short[] out, int off)
public int[] getDataCopyCAsInt(int t, int z, int x, int y)
public int[] getDataCopyCAsInt(int t, int z, int x, int y, int[] out, int off)
public float[] getDataCopyCAsFloat(int t, int z, int x, int y)
public float[] getDataCopyCAsFloat(int t, int z, int x, int y, float[] out, int off)
public double[] getDataCopyCAsDouble(int t, int z, int x, int y)
public double[] getDataCopyCAsDouble(int t, int z, int x, int y, double[] out, int off)
public byte[] getDataCopyXYZTAsByte(int c)
public byte[] getDataCopyXYZTAsByte(int c, byte[] out, int off)
public short[] getDataCopyXYZTAsShort(int c)
public short[] getDataCopyXYZTAsShort(int c, short[] out, int off)
public int[] getDataCopyXYZTAsInt(int c)
public int[] getDataCopyXYZTAsInt(int c, int[] out, int off)
public float[] getDataCopyXYZTAsFloat(int c)
public float[] getDataCopyXYZTAsFloat(int c, float[] out, int off)
public double[] getDataCopyXYZTAsDouble(int c)
public double[] getDataCopyXYZTAsDouble(int c, double[] out, int off)
public byte[] getDataCopyXYZAsByte(int t, int c)
public byte[] getDataCopyXYZAsByte(int t, int c, byte[] out, int off)
public short[] getDataCopyXYZAsShort(int t, int c)
public short[] getDataCopyXYZAsShort(int t, int c, short[] out, int off)
public int[] getDataCopyXYZAsInt(int t, int c)
public int[] getDataCopyXYZAsInt(int t, int c, int[] out, int off)
public float[] getDataCopyXYZAsFloat(int t, int c)
public float[] getDataCopyXYZAsFloat(int t, int c, float[] out, int off)
public double[] getDataCopyXYZAsDouble(int t, int c)
public double[] getDataCopyXYZAsDouble(int t, int c, double[] out, int off)
public void setDataXY(int t, int z, int c, java.lang.Object value)
@Deprecated public Sequence getSubSequence(int startX, int startY, int startZ, int startT, int sizeX, int sizeY, int sizeZ, int sizeT)
SequenceUtil.getSubSequence(Sequence, int, int, int, int, int, int, int, int)
instead.@Deprecated public Sequence getCopy()
SequenceUtil.getCopy(Sequence)
instead.@Deprecated public void setT(int t)
for(Viewer v: Icy.getMainInterface().getViewers(sequence))
v.setT(...)
public boolean loadXMLData()
getFilename()
to define the XML filename so be sure that it is correctly filled before
calling this method.true
if XML data has been correctly loaded, false
otherwise.public void refreshXMLData()
public boolean saveXMLData()
public org.w3c.dom.Node isNodeExisting(java.lang.String name)
name
- name of nodegetNode(String)
public org.w3c.dom.Node getNode(java.lang.String name)
name
- name of wanted nodeisNodeExisting(String)
@Deprecated public org.w3c.dom.Node setNode(java.lang.String name)
getNode(String)
instead.public java.lang.String toString()
toString
in class java.lang.Object
public void onImageAdded(IcyBufferedImage image)
image
- public void onImageReplaced(IcyBufferedImage oldImage, IcyBufferedImage newImage)
public void onImageRemoved(IcyBufferedImage image)
image
- public void fireModelImageChangedEvent()
fireModelImageChangedEvent
in interface SequenceModel
public void fireModelDimensionChangedEvent()
fireModelDimensionChangedEvent
in interface SequenceModel
public void beginUpdate()
public void endUpdate()
public boolean isUpdating()
public void metaChanged(java.lang.String metaName)
public void metaChanged(java.lang.String metaName, int param)
@Deprecated public void painterChanged(Painter painter)
overlayChanged(Overlay)
instead.public void overlayChanged(Overlay overlay)
public void overlayChanged(OverlayEvent event)
overlayChanged(Overlay)
instead.overlayChanged
in interface OverlayListener
@Deprecated public void roiChanged()
roiChanged(ROI)
method instead.public void roiChanged(ROI roi)
public void dataChanged()
public void colorModelChanged(IcyColorModelEvent e)
colorModelChanged
in interface IcyColorModelListener
public void imageChanged(IcyBufferedImageEvent e)
imageChanged
in interface IcyBufferedImageListener
public void roiChanged(ROIEvent event)
roiChanged
in interface ROIListener
public void onChanged(CollapsibleEvent e)
onChanged
in interface ChangeListener