public class IcyBufferedImage extends java.awt.image.BufferedImage implements IcyColorModelListener, ChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
IcyBufferedImage.FilterType
Deprecated.
Use
IcyBufferedImageUtil.FilterType instead. |
static class |
IcyBufferedImage.ImageSourceInfo |
Modifier and Type | Field and Description |
---|---|
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.
|
TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE, TYPE_BYTE_BINARY, TYPE_BYTE_GRAY, TYPE_BYTE_INDEXED, TYPE_CUSTOM, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_INT_RGB, TYPE_USHORT_555_RGB, TYPE_USHORT_565_RGB, TYPE_USHORT_GRAY
Constructor and Description |
---|
IcyBufferedImage(int width,
int height,
IcyColorModel cm)
Create an ICY formatted BufferedImage with specified width, height and IcyColorModel
type.
|
IcyBufferedImage(int width,
int height,
int numComponents,
DataType dataType)
Create an ICY formatted BufferedImage with specified width, height,
number of component and dataType. |
IcyBufferedImage(int width,
int height,
int numComponents,
DataType dataType,
boolean forceVolatileData)
Create an ICY formatted BufferedImage with specified width, height,
number of component and dataType. |
IcyBufferedImage(int width,
int height,
int numComponents,
int dataType)
Deprecated.
use
IcyBufferedImage(int, int, int, DataType) instead |
IcyBufferedImage(int width,
int height,
int numComponents,
int dataType,
boolean signed)
Deprecated.
use
IcyBufferedImage(int, int, int, DataType) instead |
IcyBufferedImage(int width,
int height,
java.lang.Object data)
Create a single channel Icy formatted BufferedImage with specified width, height and input
data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object[] data)
Create an Icy formatted BufferedImage with specified width, height and input data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object[] data,
boolean signed)
Create an Icy formatted BufferedImage with specified width, height and input data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object[] data,
boolean signed,
boolean autoUpdateChannelBounds)
Create an Icy formatted BufferedImage with specified width, height and input data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object data,
boolean signed)
Create a single channel Icy formatted BufferedImage with specified width, height and input
data.
|
IcyBufferedImage(int width,
int height,
java.lang.Object data,
boolean signed,
boolean autoUpdateChannelBounds)
Create a single channel Icy formatted BufferedImage with specified width, height and input data.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IcyBufferedImageListener listener) |
void |
beginUpdate() |
void |
channelBoundsChanged(int channel)
notify image channels bounds has changed
|
void |
coerceData(boolean isAlphaPremultiplied) |
void |
colorModelChanged(IcyColorModelEvent e) |
void |
componentBoundsChanged(int component)
Deprecated.
Use
channelBoundsChanged(int) instead. |
static IcyBufferedImage |
convert(java.awt.image.BufferedImage image)
Deprecated.
|
static IcyBufferedImage |
convert(java.util.List<java.awt.image.BufferedImage> imageList)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(java.awt.image.BufferedImage out)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(java.awt.image.BufferedImage out,
LUT lut)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(int imageType,
LUT lut)
Deprecated.
|
java.awt.image.BufferedImage |
convertToBufferedImage(LUT lut,
int imageType)
Deprecated.
|
IcyBufferedImage |
convertToType(DataType dataType,
boolean rescale)
Deprecated.
|
IcyBufferedImage |
convertToType(DataType dataType,
Scaler scaler)
Deprecated.
|
IcyBufferedImage |
convertToType(int dataType,
boolean signed,
boolean rescale)
Deprecated.
|
IcyBufferedImage |
convertToType(int dataType,
boolean signed,
Scaler scaler)
Deprecated.
|
void |
copyColormap(java.awt.image.BufferedImage srcImage)
Deprecated.
Use
setColorMaps(BufferedImage) instead. |
void |
copyData(java.awt.image.BufferedImage srcImage)
Copy data from an image (notify data changed)
|
void |
copyData(java.awt.image.BufferedImage srcImage,
int srcChannel,
int dstChannel)
Copy data from an image (notify data changed)
|
boolean |
copyData(java.awt.image.ComponentSampleModel sampleModel,
java.awt.image.WritableRaster sourceRaster,
int srcChannel,
int dstChannel)
Copy channel data from a compatible sample model and writable raster (notify data changed).
|
void |
copyData(IcyBufferedImage srcImage,
java.awt.Rectangle srcRect,
java.awt.Point dstPt)
Copy data from an image (notify data changed)
|
void |
copyData(IcyBufferedImage srcImage,
java.awt.Rectangle srcRect,
java.awt.Point dstPt,
int srcChannel,
int dstChannel)
Copy data from an image (notify data changed)
|
void |
copyData(java.lang.Object data,
java.awt.Dimension dataDim,
boolean signed,
java.awt.Point dstPt,
int dstChannel)
Copy data to specified location from an data array.
|
java.awt.image.WritableRaster |
copyData(java.awt.image.WritableRaster outRaster) |
LUT |
createCompatibleLUT()
create a compatible LUT for this image
|
LUT |
createCompatibleLUT(boolean createColorModel)
create a compatible LUT for this image.
|
static IcyBufferedImage |
createCompatibleThumbnailFrom(loci.formats.IFormatReader reader,
int z,
int t)
Deprecated.
|
static IcyBufferedImage |
createEmptyImage(int width,
int height,
IcyColorModel cm)
Deprecated.
Use
IcyBufferedImage(int, int, IcyColorModel) instead. |
static IcyBufferedImage |
createFrom(java.awt.image.BufferedImage image)
Create an IcyBufferedImage from a BufferedImage.
|
static IcyBufferedImage |
createFrom(loci.formats.IFormatReader reader,
int z,
int t)
Deprecated.
|
static IcyBufferedImage |
createFrom(loci.formats.IFormatReader reader,
int x,
int y,
int w,
int h,
int z,
int t,
int c)
Deprecated.
|
static IcyBufferedImage |
createFrom(java.util.List<? extends java.awt.image.BufferedImage> imageList)
Create an IcyBufferedImage (multi component) from a list of BufferedImage.
|
static IcyBufferedImage |
createFrom(javax.media.jai.PlanarImage image)
Create an IcyBufferedImage from a
PlanarImage . |
static IcyBufferedImage |
createFrom(javax.media.jai.PlanarImage image,
boolean signedDataType)
Create an IcyBufferedImage from a
PlanarImage . |
static IcyBufferedImage |
createThumbnailFrom(loci.formats.IFormatReader reader,
int z,
int t)
Deprecated.
|
void |
dataChanged()
notify image data has changed
|
void |
endUpdate() |
IcyBufferedImage |
extractBand(int bandNumber)
Deprecated.
|
IcyBufferedImage |
extractBands(java.util.List<java.lang.Integer> bandNumbers)
Deprecated.
|
IcyBufferedImage |
extractChannel(int channelNumber)
Deprecated.
|
IcyBufferedImage |
extractChannels(java.util.List<java.lang.Integer> channelNumbers)
Deprecated.
|
java.awt.image.WritableRaster |
getAlphaRaster() |
java.awt.image.BufferedImage |
getARGBImage()
Deprecated.
Use
IcyBufferedImageUtil.getARGBImage(IcyBufferedImage) instead. |
java.awt.image.BufferedImage |
getARGBImage(java.awt.image.BufferedImage out)
Deprecated.
|
java.awt.image.BufferedImage |
getARGBImage(LUT lut)
Deprecated.
|
java.awt.image.BufferedImage |
getARGBImage(LUT lut,
java.awt.image.BufferedImage out)
Deprecated.
|
boolean |
getAutoUpdateChannelBounds() |
java.awt.Rectangle |
getBounds()
Return 2D bounds of image {0, 0, sizeX, sizeY}
|
double[] |
getChannelBounds(int channel)
Get bounds (min and max values) for the specified channel.
|
double |
getChannelMax(int channel)
Get maximum value for the specified channel.
|
double |
getChannelMin(int channel)
Get the minimum value for the specified channel.
|
double[][] |
getChannelsBounds()
Get bounds (min and max values) for all channels.
|
double[] |
getChannelsGlobalBounds()
Get global bounds (min and max values) for all channels.
|
double[] |
getChannelsGlobalTypeBounds()
Get global type bounds (min and max values) for all channels.
|
double[][] |
getChannelsTypeBounds()
Get type bounds (min and max values) for all channels.
|
double[] |
getChannelTypeBounds(int channel)
Get type bounds (min and max values) for the specified channel.
|
double[] |
getChannelTypeGlobalBounds()
Deprecated.
Use
getChannelsGlobalTypeBounds() instead. |
double |
getChannelTypeMax(int channel)
Get the maximum type value for the specified channel.
|
double |
getChannelTypeMin(int channel)
Get the minimum type value for the specified channel.
|
IcyColorMap |
getColormap(int channel)
Deprecated.
Use
getColorMap(int) instead (different case). |
IcyColorMap |
getColorMap(int channel)
Return the colormap of the specified channel.
|
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. |
IcyBufferedImage |
getCopy()
Deprecated.
Use
IcyBufferedImageUtil.getCopy(IcyBufferedImage) instead |
java.awt.image.Raster |
getData() |
double |
getData(int x,
int y,
int c)
Return the value located at (x, y, c) position as a double
whatever is the internal data type
|
java.awt.image.Raster |
getData(java.awt.Rectangle rect) |
byte |
getDataAsByte(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
double |
getDataAsDouble(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
float |
getDataAsFloat(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
int |
getDataAsInt(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
short |
getDataAsShort(int x,
int y,
int c)
Return the value located at (x, y, c) position
|
java.lang.Object |
getDataCopyC(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
java.lang.Object |
getDataCopyC(int x,
int y,
java.lang.Object out,
int offset)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
byte[] |
getDataCopyCAsByte(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
byte[] |
getDataCopyCAsByte(int x,
int y,
byte[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
double[] |
getDataCopyCAsDouble(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
double[] |
getDataCopyCAsDouble(int x,
int y,
double[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
float[] |
getDataCopyCAsFloat(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
float[] |
getDataCopyCAsFloat(int x,
int y,
float[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
int[] |
getDataCopyCAsInt(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
int[] |
getDataCopyCAsInt(int x,
int y,
int[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
short[] |
getDataCopyCAsShort(int x,
int y)
Return a 1D array data copy [C] of specified (x, y) position
|
short[] |
getDataCopyCAsShort(int x,
int y,
short[] out,
int off)
Return a 1D array data copy [C] of specified (x, y) position
If (out ! |
java.lang.Object |
getDataCopyCXY()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
java.lang.Object |
getDataCopyCXY(java.lang.Object out,
int offset)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
byte[] |
getDataCopyCXYAsByte()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
byte[] |
getDataCopyCXYAsByte(byte[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
double[] |
getDataCopyCXYAsDouble()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
double[] |
getDataCopyCXYAsDouble(double[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
float[] |
getDataCopyCXYAsFloat()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
float[] |
getDataCopyCXYAsFloat(float[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
int[] |
getDataCopyCXYAsInt()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
int[] |
getDataCopyCXYAsInt(int[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
short[] |
getDataCopyCXYAsShort()
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
|
short[] |
getDataCopyCXYAsShort(short[] out,
int off)
Return a 1D array data copy [CXY] of internal 2D array data [C][XY]
If (out ! |
java.lang.Object |
getDataCopyXY(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
java.lang.Object |
getDataCopyXY(int c,
java.lang.Object out,
int offset)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
byte[] |
getDataCopyXYAsByte(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
byte[] |
getDataCopyXYAsByte(int c,
byte[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
double[] |
getDataCopyXYAsDouble(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
double[] |
getDataCopyXYAsDouble(int c,
double[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
float[] |
getDataCopyXYAsFloat(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
float[] |
getDataCopyXYAsFloat(int c,
float[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
int[] |
getDataCopyXYAsInt(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
int[] |
getDataCopyXYAsInt(int c,
int[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
short[] |
getDataCopyXYAsShort(int c)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
|
short[] |
getDataCopyXYAsShort(int c,
short[] out,
int off)
Return a 1D array data copy [XY] of internal 1D array data [XY] for specified c
If (out ! |
java.lang.Object |
getDataCopyXYC()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
java.lang.Object |
getDataCopyXYC(java.lang.Object out,
int offset)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
If (out ! |
byte[] |
getDataCopyXYCAsByte()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
byte[] |
getDataCopyXYCAsByte(byte[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
double[] |
getDataCopyXYCAsDouble()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
double[] |
getDataCopyXYCAsDouble(double[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
float[] |
getDataCopyXYCAsFloat()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
float[] |
getDataCopyXYCAsFloat(float[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
int[] |
getDataCopyXYCAsInt()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
int[] |
getDataCopyXYCAsInt(int[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
short[] |
getDataCopyXYCAsShort()
Return a 1D array data copy [XYC] of internal 2D array data [C][XY]
|
short[] |
getDataCopyXYCAsShort(short[] out,
int off)
Return a 1D array data copy [XYC] of internal 2D array data [C][XY] If (out !
|
double |
getDataInterpolated(double x,
double y,
int c)
Returns the data value located at position (x, y, c) as double whatever is the internal data type.
|
DataType |
getDataType_()
Return the data type of this image
|
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 c)
Return a direct reference to internal 1D array data [XY] for specified c
|
byte[] |
getDataXYAsByte(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
double[] |
getDataXYAsDouble(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
float[] |
getDataXYAsFloat(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
int[] |
getDataXYAsInt(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
short[] |
getDataXYAsShort(int c)
Return a direct reference to internal 1D array data [XY] for specified c
|
java.lang.Object |
getDataXYC()
Return a direct reference to internal 2D array data [C][XY]
|
byte[][] |
getDataXYCAsByte()
Return a direct reference to internal 2D array data [C][XY]
|
double[][] |
getDataXYCAsDouble()
Return a direct reference to internal 2D array data [C][XY]
|
float[][] |
getDataXYCAsFloat()
Return a direct reference to internal 2D array data [C][XY]
|
int[][] |
getDataXYCAsInt()
Return a direct reference to internal 2D array data [C][XY]
|
short[][] |
getDataXYCAsShort()
Return a direct reference to internal 2D array data [C][XY]
|
java.awt.Dimension |
getDimension()
Return 2D dimension of image {sizeX, sizeY}
|
double[] |
getGlobalChannelTypeBounds()
Deprecated.
Use
getChannelTypeGlobalBounds() instead. |
double[] |
getGlobalComponentAbsBounds()
Deprecated.
Use
getGlobalChannelTypeBounds() instead. |
int |
getHeight() |
int |
getHeight(java.awt.image.ImageObserver observer) |
static IcyBufferedImage |
getIcyBufferedImage(int idHashCode)
Retrieve an
IcyBufferedImage from its identity hash code |
static IcyBufferedImage |
getIcyBufferedImage(java.lang.Integer idHashCode)
Retrieve an
IcyBufferedImage from its identity hash code |
IcyColorModel |
getIcyColorModel()
Return the IcyColorModel
|
IcyBufferedImage |
getImage(int c)
Return a single component image corresponding to the component c of current image.
|
IcyBufferedImage.ImageSourceInfo |
getImageSourceInfo() |
LUT |
getLUT()
Deprecated.
No attached LUT to an image.
Use createCompatibleLUT(boolean) instead. |
int |
getMinX() |
int |
getMinY() |
int |
getNumComponents()
Deprecated.
Use
getSizeC() instead. |
int |
getNumSample()
Return the number of sample.
|
int |
getOffset(int x,
int y)
Return the offset for specified (x, y) location
|
Sequence |
getOwnerSequence()
Return the owner sequence (can be null if the image is not owned in any Sequence)
|
java.awt.image.WritableRaster |
getRaster() |
byte[] |
getRawData(boolean little)
Return raw data for all components as an array of byte
|
byte[] |
getRawData(byte[] out,
int offset,
boolean little)
Return raw data for all components as an array of byte
|
byte[] |
getRawData(int c,
boolean little)
Return raw data component as an array of byte
|
byte[] |
getRawData(int c,
byte[] out,
int offset,
boolean little)
Return raw data component as an array of byte
|
int |
getRGB(int x,
int y) |
int[] |
getRGB(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize) |
int |
getRGB(int x,
int y,
LUT lut)
Same as getRGB but by using the specified LUT instead of internal one
|
java.awt.image.SampleModel |
getSampleModel() |
IcyBufferedImage |
getScaledCopy(int width,
int height)
Deprecated.
|
IcyBufferedImage |
getScaledCopy(int width,
int height,
boolean resizeContent,
int xAlign,
int yAlign)
Deprecated.
|
IcyBufferedImage |
getScaledCopy(int width,
int height,
boolean resizeContent,
int xAlign,
int yAlign,
IcyBufferedImage.FilterType filterType)
|
IcyBufferedImage |
getScaledCopy(int width,
int height,
IcyBufferedImage.FilterType filterType)
Deprecated.
|
int |
getSizeC() |
int |
getSizeX() |
int |
getSizeY() |
IcyBufferedImage |
getSubimage(int x,
int y,
int w,
int h)
Deprecated.
|
IcyBufferedImage |
getSubImageCopy(int x,
int y,
int w,
int h)
Deprecated.
|
java.awt.image.Raster |
getTile(int tileX,
int tileY) |
int |
getTileGridXOffset() |
int |
getTileGridYOffset() |
int |
getTileHeight() |
int |
getTileWidth() |
int |
getWidth() |
int |
getWidth(java.awt.image.ImageObserver observer) |
java.awt.image.WritableRaster |
getWritableTile(int tileX,
int tileY) |
boolean |
isDataInitialized()
Returns
true if data is initialized |
boolean |
isDataInMemory()
Returns
true if data is currently loaded in memory. |
boolean |
isFloatDataType()
Return true if this is a float data type image
|
boolean |
isInside(double x,
double y)
Return true if point of coordinate (x, y) is inside the image
|
boolean |
isInside(int x,
int y)
Return true if point of coordinate (x, y) is inside the image
|
boolean |
isInside(java.awt.Point p)
Return true if point is inside the image
|
boolean |
isRasterLocked()
Return
true if raster data is strongly referenced, false otherwise. |
boolean |
isSignedDataType()
Return true if this is a signed data type image
|
boolean |
isUpdating() |
boolean |
isVolatile()
Returns
true if image data is volatile. |
void |
loadData()
Force loading data for this image (so channel bounds can be correctly computed even with lazy loading)
|
void |
lockRaster()
Ensure raster data remains strongly referenced until we call
releaseRaster(boolean) . |
void |
onChanged(CollapsibleEvent object)
fire changed event
|
void |
releaseRaster(boolean saveInCache)
Release the raster object.
|
void |
removeListener(IcyBufferedImageListener listener) |
void |
saveDataInCache()
Explicitly save the image data in cache (only for volatile image)
|
void |
setAutoUpdateChannelBounds(boolean value)
If set to
true (default) then channel bounds will be automatically recalculated
when image data is modified. |
void |
setChannelBounds(int channel,
double min,
double max)
Set channel bounds (min and max values)
|
void |
setChannelMax(int channel,
double max)
Set channel maximum value.
|
void |
setChannelMin(int channel,
double min)
Set channel minimum value.
|
void |
setChannelsBounds(double[][] bounds)
Set all channel bounds (min and max values)
|
void |
setChannelsTypeBounds(double[][] bounds)
Set the preferred data type bounds (min and max values) for all channels.
|
void |
setChannelTypeBounds(int channel,
double min,
double max)
/**
Set the preferred data type min and max values for the specified channel.
|
void |
setChannelTypeMax(int channel,
double max)
Set the preferred data type maximum value for the specified channel.
|
void |
setChannelTypeMin(int channel,
double min)
Set the preferred data type minimum value for the specified channel.
|
void |
setColormap(int channel,
IcyColorMap map)
Deprecated.
Use
setColorMap(int, IcyColorMap, boolean) instead. |
void |
setColorMap(int channel,
IcyColorMap map)
Set the colormap for the specified channel.
|
void |
setColorMap(int channel,
IcyColorMap map,
boolean setAlpha)
Set the colormap for the specified channel.
|
void |
setColormaps(java.awt.image.BufferedImage srcImage)
Deprecated.
Use
setColorMaps(BufferedImage) instead (different case). |
void |
setColorMaps(java.awt.image.BufferedImage srcImage)
Set colormaps from specified image.
|
void |
setComponentAbsBounds(int component,
double[] bounds)
Deprecated.
Use
setChannelTypeBounds(int, double, double) instead. |
void |
setComponentAbsBounds(int component,
double min,
double max)
Deprecated.
Use
setChannelTypeBounds(int, double, double) instead. |
void |
setComponentAbsMaxValue(int component,
double max)
Deprecated.
Use
setChannelTypeMax(int, double) instead. |
void |
setComponentAbsMinValue(int component,
double min)
Deprecated.
Use
setChannelTypeMin(int, double) instead. |
void |
setComponentsAbsBounds(double[][] bounds)
Deprecated.
Use
setChannelsTypeBounds(double[][]) instead. |
void |
setComponentsUserBounds(double[][] bounds)
Deprecated.
Use
setChannelsBounds(double[][]) instead. |
void |
setComponentUserBounds(int component,
double[] bounds)
Deprecated.
Use
setChannelBounds(int, double, double) instead. |
void |
setComponentUserBounds(int component,
double min,
double max)
Deprecated.
Use
setChannelBounds(int, double, double) instead |
void |
setComponentUserMaxValue(int component,
double max)
Deprecated.
Use
setChannelMax(int, double) instead. |
void |
setComponentUserMinValue(int component,
double min)
Deprecated.
Use
setChannelMin(int, double) instead. |
void |
setData(int x,
int y,
int c,
double value)
Set the value located at (x, y, c) position as a double
whatever is the internal data type
|
void |
setData(java.awt.image.Raster r) |
void |
setDataAsByte(int x,
int y,
int c,
byte value)
Set the value located at (x, y, c) position
|
void |
setDataAsDouble(int x,
int y,
int c,
double value)
Set the value located at (x, y, c) position
|
void |
setDataAsFloat(int x,
int y,
int c,
float value)
Set the value located at (x, y, c) position
|
void |
setDataAsInt(int x,
int y,
int c,
int value)
Set the value located at (x, y, c) position
|
void |
setDataAsShort(int x,
int y,
int c,
short value)
Set the value located at (x, y, c) position
|
void |
setDataC(int x,
int y,
java.lang.Object values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsByte(int x,
int y,
byte[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsDouble(int x,
int y,
double[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsFloat(int x,
int y,
float[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsInt(int x,
int y,
int[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataCAsShort(int x,
int y,
short[] values)
Set 1D array data [C] of specified (x, y) position
|
void |
setDataXY(int c,
java.lang.Object values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsByte(int c,
byte[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsDouble(int c,
double[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsFloat(int c,
float[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsInt(int c,
int[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setDataXYAsShort(int c,
short[] values)
Set internal 1D byte array data ([XY]) for specified component
|
void |
setImageSourceInfo(SequenceIdImporter imp,
int series,
int resolution,
java.awt.Rectangle region,
int t,
int z,
int c)
Set the image source information that will be used later for lazy image data loading.
|
void |
setRawData(byte[] data,
boolean little)
Set raw data for all components from an array of byte (notify data changed)
|
void |
setRawData(byte[] data,
int offset,
boolean little)
Set raw data for all components from an array of byte (notify data changed).
|
void |
setRawData(int c,
byte[] data,
boolean little)
Set raw data component from an array of byte (notify data changed)
|
void |
setRawData(int c,
byte[] data,
int offset,
boolean little)
Set raw data component from an array of byte (notify data changed)
|
void |
setRGB(int x,
int y,
int rgb) |
void |
setRGB(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize) |
void |
setVolatile(boolean value)
Sets the volatile state for this image.
|
java.lang.String |
toString() |
void |
translate(int dx,
int dy)
Deprecated.
|
void |
translate(int dx,
int dy,
int channel)
Deprecated.
|
void |
updateChannelsBounds()
Update channels bounds (min and max values).
|
void |
updateComponentsBounds(boolean updateUserBounds)
Deprecated.
Use
updateChannelsBounds() instead. |
void |
updateComponentsBounds(boolean updateChannelBounds,
boolean adjustByteToo)
Deprecated.
Use
updateChannelsBounds() instead. |
addTileObserver, createGraphics, getColorModel, getGraphics, getMinTileX, getMinTileY, getNumXTiles, getNumYTiles, getProperty, getProperty, getPropertyNames, getSource, getSources, getTransparency, getType, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver
@Deprecated public static int TYPE_BYTE
@Deprecated public static int TYPE_DOUBLE
@Deprecated public static int TYPE_FLOAT
@Deprecated public static int TYPE_INT
@Deprecated public static int TYPE_SHORT
@Deprecated public static int TYPE_UNDEFINED
public IcyBufferedImage(int width, int height, java.lang.Object[] data, boolean signed, boolean autoUpdateChannelBounds)
img = new IcyBufferedImage(640, 480, new byte[3][640 * 480], true);
width
- height
- data
- image datawidth * height
signed
- use signed data for data typeautoUpdateChannelBounds
- If true then channel bounds are automatically calculated.updateChannelsBounds()
or #setCpublic IcyBufferedImage(int width, int height, java.lang.Object[] data, boolean signed)
img = new IcyBufferedImage(640, 480, new byte[3][640 * 480]);
width
- height
- data
- image datawidth * height
signed
- use signed data for data typepublic IcyBufferedImage(int width, int height, java.lang.Object[] data)
img = new IcyBufferedImage(640, 480, new byte[3][640 * 480]);
width
- height
- data
- image datawidth * height
public IcyBufferedImage(int width, int height, java.lang.Object data, boolean signed, boolean autoUpdateChannelBounds)
img = new IcyBufferedImage(640, 480, new byte[640 * 480], true);
width
- height
- data
- image data array.width * height
.signed
- use signed data for data typeautoUpdateChannelBounds
- If true then channel bounds are automatically calculated.updateChannelsBounds()
or #setCIcyBufferedImage(int, int, Object[], boolean, boolean)
public IcyBufferedImage(int width, int height, java.lang.Object data, boolean signed)
img = new IcyBufferedImage(640, 480, new byte[640 * 480]);
width
- height
- data
- image datawidth * height
.signed
- use signed data for data typepublic IcyBufferedImage(int width, int height, java.lang.Object data)
img = new IcyBufferedImage(640, 480, new byte[640 * 480]);
width
- height
- data
- image datawidth * height
.public IcyBufferedImage(int width, int height, int numComponents, DataType dataType, boolean forceVolatileData)
width
- height
- numComponents
- dataType
- image data type DataType
public IcyBufferedImage(int width, int height, int numComponents, DataType dataType)
width
- height
- numComponents
- dataType
- image data type DataType
public IcyBufferedImage(int width, int height, IcyColorModel cm)
@Deprecated public IcyBufferedImage(int width, int height, int numComponents, int dataType, boolean signed)
IcyBufferedImage(int, int, int, DataType)
instead@Deprecated public IcyBufferedImage(int width, int height, int numComponents, int dataType)
IcyBufferedImage(int, int, int, DataType)
insteadpublic static IcyBufferedImage getIcyBufferedImage(java.lang.Integer idHashCode)
IcyBufferedImage
from its identity hash codepublic static IcyBufferedImage getIcyBufferedImage(int idHashCode)
IcyBufferedImage
from its identity hash code@Deprecated public static IcyBufferedImage convert(java.util.List<java.awt.image.BufferedImage> imageList)
createFrom(java.util.List<? extends java.awt.image.BufferedImage>)
insteadimageList
- list of BufferedImage
IcyBufferedImage
public static IcyBufferedImage createFrom(java.util.List<? extends java.awt.image.BufferedImage> imageList) throws java.lang.IllegalArgumentException
imageList
- list of BufferedImage
IcyBufferedImage
java.lang.IllegalArgumentException
- if imageList is empty or contains incompatible images.@Deprecated public static IcyBufferedImage convert(java.awt.image.BufferedImage image)
createFrom(java.util.List<? extends java.awt.image.BufferedImage>)
insteadimage
- BufferedImage
IcyBufferedImage
public static IcyBufferedImage createFrom(javax.media.jai.PlanarImage image, boolean signedDataType)
PlanarImage
.image
- PlanarImage
IcyBufferedImage
public static IcyBufferedImage createFrom(javax.media.jai.PlanarImage image)
PlanarImage
.image
- PlanarImage
IcyBufferedImage
public static IcyBufferedImage createFrom(java.awt.image.BufferedImage image)
image
- BufferedImage
IcyBufferedImage
@Deprecated public static IcyBufferedImage createCompatibleThumbnailFrom(loci.formats.IFormatReader reader, int z, int t) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getThumbnailCompatible(IFormatReader, int, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createThumbnailFrom(loci.formats.IFormatReader reader, int z, int t) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getThumbnail(IFormatReader, int, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createFrom(loci.formats.IFormatReader reader, int x, int y, int w, int h, int z, int t, int c) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getImage(IFormatReader, Rectangle, int, int, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createFrom(loci.formats.IFormatReader reader, int z, int t) throws loci.formats.FormatException, java.io.IOException
LociImporterPlugin.getImage(IFormatReader, Rectangle, int, int)
instead.loci.formats.FormatException
java.io.IOException
@Deprecated public static IcyBufferedImage createEmptyImage(int width, int height, IcyColorModel cm)
IcyBufferedImage(int, int, IcyColorModel)
instead.public IcyBufferedImage.ImageSourceInfo getImageSourceInfo()
public void setImageSourceInfo(SequenceIdImporter imp, int series, int resolution, java.awt.Rectangle region, int t, int z, int c)
public boolean isDataInitialized()
true
if data is initializedpublic boolean isDataInMemory()
true
if data is currently loaded in memory.false
if data has not yet be initialized (see isDataInitialized()
) or if data is cached on disk (not anymore in memory)public boolean isVolatile()
true
if image data is volatile.setVolatile(boolean)
public void setVolatile(boolean value) throws java.lang.OutOfMemoryError, java.lang.UnsupportedOperationException
lockRaster()
and
releaseRaster(boolean)
methods).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 loadData()
public java.awt.image.WritableRaster getRaster()
getRaster
in class java.awt.image.BufferedImage
public java.awt.image.WritableRaster getAlphaRaster()
getAlphaRaster
in class java.awt.image.BufferedImage
public boolean isRasterLocked()
true
if raster data is strongly referenced, false
otherwise.lockRaster()
method.lockRaster()
,
isVolatile()
public void lockRaster()
releaseRaster(boolean)
.releaseRaster(boolean)
,
isVolatile()
public void releaseRaster(boolean saveInCache)
saveInCache
- force to save raster data in cache (for volatile image only)public int getWidth()
getWidth
in interface java.awt.image.RenderedImage
getWidth
in class java.awt.image.BufferedImage
public int getHeight()
getHeight
in interface java.awt.image.RenderedImage
getHeight
in class java.awt.image.BufferedImage
public int getWidth(java.awt.image.ImageObserver observer)
getWidth
in class java.awt.image.BufferedImage
public int getHeight(java.awt.image.ImageObserver observer)
getHeight
in class java.awt.image.BufferedImage
public int getMinX()
getMinX
in interface java.awt.image.RenderedImage
getMinX
in class java.awt.image.BufferedImage
public int getMinY()
getMinY
in interface java.awt.image.RenderedImage
getMinY
in class java.awt.image.BufferedImage
public int getTileWidth()
getTileWidth
in interface java.awt.image.RenderedImage
getTileWidth
in class java.awt.image.BufferedImage
public int getTileHeight()
getTileHeight
in interface java.awt.image.RenderedImage
getTileHeight
in class java.awt.image.BufferedImage
public int getTileGridXOffset()
getTileGridXOffset
in interface java.awt.image.RenderedImage
getTileGridXOffset
in class java.awt.image.BufferedImage
public int getTileGridYOffset()
getTileGridYOffset
in interface java.awt.image.RenderedImage
getTileGridYOffset
in class java.awt.image.BufferedImage
public java.awt.image.SampleModel getSampleModel()
getSampleModel
in interface java.awt.image.RenderedImage
getSampleModel
in class java.awt.image.BufferedImage
public void coerceData(boolean isAlphaPremultiplied)
coerceData
in class java.awt.image.BufferedImage
public java.awt.image.WritableRaster copyData(java.awt.image.WritableRaster outRaster)
copyData
in interface java.awt.image.RenderedImage
copyData
in class java.awt.image.BufferedImage
public java.awt.image.Raster getTile(int tileX, int tileY)
getTile
in interface java.awt.image.RenderedImage
getTile
in class java.awt.image.BufferedImage
public java.awt.image.WritableRaster getWritableTile(int tileX, int tileY)
getWritableTile
in interface java.awt.image.WritableRenderedImage
getWritableTile
in class java.awt.image.BufferedImage
public java.awt.image.Raster getData()
getData
in interface java.awt.image.RenderedImage
getData
in class java.awt.image.BufferedImage
public java.awt.image.Raster getData(java.awt.Rectangle rect)
getData
in interface java.awt.image.RenderedImage
getData
in class java.awt.image.BufferedImage
public void setData(java.awt.image.Raster r)
setData
in interface java.awt.image.WritableRenderedImage
setData
in class java.awt.image.BufferedImage
public int getRGB(int x, int y)
getRGB
in class java.awt.image.BufferedImage
public int[] getRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
getRGB
in class java.awt.image.BufferedImage
public void setRGB(int x, int y, int rgb)
setRGB
in class java.awt.image.BufferedImage
public void setRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
setRGB
in class java.awt.image.BufferedImage
public Sequence getOwnerSequence()
public void saveDataInCache()
isVolatile()
public boolean getAutoUpdateChannelBounds()
setAutoUpdateChannelBounds(boolean)
public void setAutoUpdateChannelBounds(boolean value)
true
(default) then channel bounds will be automatically recalculated
when image data is modified.beginUpdate()
... endUpdate()
block to avoid
severals recalculation.@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(java.awt.image.BufferedImage out, LUT lut)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage, LUT)
instead.@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(java.awt.image.BufferedImage out)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage(LUT lut, java.awt.image.BufferedImage out)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage, LUT)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage(java.awt.image.BufferedImage out)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, BufferedImage)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage(LUT lut)
IcyBufferedImageUtil.getARGBImage(IcyBufferedImage, LUT)
instead.@Deprecated public java.awt.image.BufferedImage getARGBImage()
IcyBufferedImageUtil.getARGBImage(IcyBufferedImage)
instead.@Deprecated public IcyBufferedImage convertToType(DataType dataType, Scaler scaler)
IcyBufferedImageUtil.convertType(IcyBufferedImage, DataType, Scaler[])
instead.@Deprecated public IcyBufferedImage convertToType(int dataType, boolean signed, Scaler scaler)
IcyBufferedImageUtil.convertType(IcyBufferedImage,DataType, Scaler[])
instead.@Deprecated public IcyBufferedImage convertToType(DataType dataType, boolean rescale)
IcyBufferedImageUtil.convertToType(IcyBufferedImage, DataType, boolean)
instead.@Deprecated public IcyBufferedImage convertToType(int dataType, boolean signed, boolean rescale)
IcyBufferedImageUtil.convertToType(IcyBufferedImage,DataType, boolean)
instead@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(LUT lut, int imageType)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, int, LUT)
instead@Deprecated public java.awt.image.BufferedImage convertToBufferedImage(int imageType, LUT lut)
IcyBufferedImageUtil.toBufferedImage(IcyBufferedImage, int, LUT)
instead@Deprecated public IcyBufferedImage getCopy()
IcyBufferedImageUtil.getCopy(IcyBufferedImage)
instead@Deprecated public IcyBufferedImage getSubImageCopy(int x, int y, int w, int h)
IcyBufferedImageUtil.getSubImage(IcyBufferedImage, int, int, int, int)
instead@Deprecated public IcyBufferedImage getSubimage(int x, int y, int w, int h)
getSubimage
in class java.awt.image.BufferedImage
public IcyBufferedImage getImage(int c)
(c == -1)
then current image is directly returned((c == 0) || (sizeC == 1))
then current image is directly returned((c < 0) || (c >= sizeC))
then it returns null
IcyBufferedImageUtil.extractChannel(IcyBufferedImage, int)
@Deprecated public IcyBufferedImage extractChannel(int channelNumber)
IcyBufferedImageUtil.extractChannel(IcyBufferedImage, int)
instead.@Deprecated public IcyBufferedImage extractChannels(java.util.List<java.lang.Integer> channelNumbers)
IcyBufferedImageUtil.extractChannels(IcyBufferedImage, List)
instead.@Deprecated public IcyBufferedImage extractBand(int bandNumber)
IcyBufferedImageUtil.extractChannel(IcyBufferedImage, int)
instead@Deprecated public IcyBufferedImage extractBands(java.util.List<java.lang.Integer> bandNumbers)
IcyBufferedImageUtil.extractChannels(IcyBufferedImage, List)
instead@Deprecated public IcyBufferedImage getScaledCopy(int width, int height, boolean resizeContent, int xAlign, int yAlign, IcyBufferedImage.FilterType filterType)
@Deprecated public IcyBufferedImage getScaledCopy(int width, int height, boolean resizeContent, int xAlign, int yAlign)
IcyBufferedImageUtil.scale(IcyBufferedImage, int, int, boolean, int, int)
instead.@Deprecated public IcyBufferedImage getScaledCopy(int width, int height, IcyBufferedImage.FilterType filterType)
IcyBufferedImageUtil.scale(IcyBufferedImage, int, int, IcyBufferedImageUtil.FilterType)
instead.@Deprecated public IcyBufferedImage getScaledCopy(int width, int height)
IcyBufferedImageUtil.scale(IcyBufferedImage, int, int)
instead.@Deprecated public void translate(int dx, int dy, int channel)
IcyBufferedImageUtil.translate(IcyBufferedImage, int, int, int)
instead.@Deprecated public void translate(int dx, int dy)
IcyBufferedImageUtil.translate(IcyBufferedImage, int, int)
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()
getGlobalChannelTypeBounds()
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 setChannelTypeMin(int channel, double min)
public void setChannelTypeMax(int channel, double max)
public void setChannelTypeBounds(int channel, double min, double max)
public void setChannelsTypeBounds(double[][] bounds)
@Deprecated public void setComponentAbsMinValue(int component, double min)
setChannelTypeMin(int, double)
instead.@Deprecated public void setComponentAbsMaxValue(int component, double max)
setChannelTypeMax(int, double)
instead.@Deprecated public void setComponentAbsBounds(int component, double[] bounds)
setChannelTypeBounds(int, double, double)
instead.@Deprecated public void setComponentAbsBounds(int component, double min, double max)
setChannelTypeBounds(int, double, double)
instead.@Deprecated public void setComponentsAbsBounds(double[][] bounds)
setChannelsTypeBounds(double[][])
instead.public void setChannelMin(int channel, double min)
public void setChannelMax(int channel, double max)
public void setChannelBounds(int channel, double min, double max)
public void setChannelsBounds(double[][] bounds)
@Deprecated public void setComponentUserMinValue(int component, double min)
setChannelMin(int, double)
instead.@Deprecated public void setComponentUserMaxValue(int component, double max)
setChannelMax(int, double)
instead.@Deprecated public void setComponentUserBounds(int component, double[] bounds)
setChannelBounds(int, double, double)
instead.@Deprecated public void setComponentUserBounds(int component, double min, double max)
setChannelBounds(int, double, double)
instead@Deprecated public void setComponentsUserBounds(double[][] bounds)
setChannelsBounds(double[][])
instead.public void updateChannelsBounds()
@Deprecated public void updateComponentsBounds(boolean updateChannelBounds, boolean adjustByteToo)
updateChannelsBounds()
instead.@Deprecated public void updateComponentsBounds(boolean updateUserBounds)
updateChannelsBounds()
instead.public boolean isInside(java.awt.Point p)
public boolean isInside(int x, int y)
public boolean isInside(double x, double y)
public IcyColorModel getIcyColorModel()
public DataType getDataType_()
DataType
@Deprecated public int getDataType()
getDataType_()
insteadpublic boolean isFloatDataType()
public boolean isSignedDataType()
@Deprecated public int getNumComponents()
getSizeC()
instead.public int getSizeC()
public int getSizeX()
public int getSizeY()
public java.awt.Dimension getDimension()
public java.awt.Rectangle getBounds()
public int getNumSample()
getSizeX() * getSizeY() * getSizeC()
public int getOffset(int x, int y)
public LUT createCompatibleLUT(boolean createColorModel)
createColorModel
- set to true
to create a LUT using a new compatible ColorModel else it
will use the image
internal ColorModelpublic LUT createCompatibleLUT()
public java.lang.Object getDataXYC()
public java.lang.Object getDataXY(int c)
public java.lang.Object getDataCopyXYC()
public java.lang.Object getDataCopyXYC(java.lang.Object out, int offset)
public java.lang.Object getDataCopyXY(int c)
public java.lang.Object getDataCopyXY(int c, java.lang.Object out, int offset)
public java.lang.Object getDataCopyCXY()
public java.lang.Object getDataCopyCXY(java.lang.Object out, int offset)
public java.lang.Object getDataCopyC(int x, int y)
public java.lang.Object getDataCopyC(int x, int y, java.lang.Object out, int offset)
public void setDataXY(int c, java.lang.Object values)
public void setDataC(int x, int y, java.lang.Object values)
public byte[][] getDataXYCAsByte()
public short[][] getDataXYCAsShort()
public int[][] getDataXYCAsInt()
public float[][] getDataXYCAsFloat()
public double[][] getDataXYCAsDouble()
public byte[] getDataXYAsByte(int c)
public short[] getDataXYAsShort(int c)
public int[] getDataXYAsInt(int c)
public float[] getDataXYAsFloat(int c)
public double[] getDataXYAsDouble(int c)
public byte[] getDataCopyXYCAsByte()
public byte[] getDataCopyXYCAsByte(byte[] out, int off)
public short[] getDataCopyXYCAsShort()
public short[] getDataCopyXYCAsShort(short[] out, int off)
public int[] getDataCopyXYCAsInt()
public int[] getDataCopyXYCAsInt(int[] out, int off)
public float[] getDataCopyXYCAsFloat()
public float[] getDataCopyXYCAsFloat(float[] out, int off)
public double[] getDataCopyXYCAsDouble()
public double[] getDataCopyXYCAsDouble(double[] out, int off)
public byte[] getDataCopyXYAsByte(int c)
public byte[] getDataCopyXYAsByte(int c, byte[] out, int off)
public short[] getDataCopyXYAsShort(int c)
public short[] getDataCopyXYAsShort(int c, short[] out, int off)
public int[] getDataCopyXYAsInt(int c)
public int[] getDataCopyXYAsInt(int c, int[] out, int off)
public float[] getDataCopyXYAsFloat(int c)
public float[] getDataCopyXYAsFloat(int c, float[] out, int off)
public double[] getDataCopyXYAsDouble(int c)
public double[] getDataCopyXYAsDouble(int c, double[] out, int off)
public byte[] getDataCopyCXYAsByte()
public byte[] getDataCopyCXYAsByte(byte[] out, int off)
public short[] getDataCopyCXYAsShort()
public short[] getDataCopyCXYAsShort(short[] out, int off)
public int[] getDataCopyCXYAsInt()
public int[] getDataCopyCXYAsInt(int[] out, int off)
public float[] getDataCopyCXYAsFloat()
public float[] getDataCopyCXYAsFloat(float[] out, int off)
public double[] getDataCopyCXYAsDouble()
public double[] getDataCopyCXYAsDouble(double[] out, int off)
public byte[] getDataCopyCAsByte(int x, int y)
public byte[] getDataCopyCAsByte(int x, int y, byte[] out, int off)
public short[] getDataCopyCAsShort(int x, int y)
public short[] getDataCopyCAsShort(int x, int y, short[] out, int off)
public int[] getDataCopyCAsInt(int x, int y)
public int[] getDataCopyCAsInt(int x, int y, int[] out, int off)
public float[] getDataCopyCAsFloat(int x, int y)
public float[] getDataCopyCAsFloat(int x, int y, float[] out, int off)
public double[] getDataCopyCAsDouble(int x, int y)
public double[] getDataCopyCAsDouble(int x, int y, double[] out, int off)
public void setDataXYAsByte(int c, byte[] values)
public void setDataXYAsShort(int c, short[] values)
public void setDataXYAsInt(int c, int[] values)
public void setDataXYAsFloat(int c, float[] values)
public void setDataXYAsDouble(int c, double[] values)
public void setDataCAsByte(int x, int y, byte[] values)
public void setDataCAsShort(int x, int y, short[] values)
public void setDataCAsInt(int x, int y, int[] values)
public void setDataCAsFloat(int x, int y, float[] values)
public void setDataCAsDouble(int x, int y, double[] values)
public double getData(int x, int y, int c)
public void setData(int x, int y, int c, double value)
public double getDataInterpolated(double x, double y, int c)
public byte getDataAsByte(int x, int y, int c)
public void setDataAsByte(int x, int y, int c, byte value)
public short getDataAsShort(int x, int y, int c)
public void setDataAsShort(int x, int y, int c, short value)
public int getDataAsInt(int x, int y, int c)
public void setDataAsInt(int x, int y, int c, int value)
public float getDataAsFloat(int x, int y, int c)
public void setDataAsFloat(int x, int y, int c, float value)
public double getDataAsDouble(int x, int y, int c)
public void setDataAsDouble(int x, int y, int c, double value)
public int getRGB(int x, int y, LUT lut)
BufferedImage.getRGB(int, int)
public boolean copyData(java.awt.image.ComponentSampleModel sampleModel, java.awt.image.WritableRaster sourceRaster, int srcChannel, int dstChannel)
sampleModel
- source sample modelraster
- source writable raster to read data fromsrcChannel
- source channel (-1 for all channels)dstChannel
- destination channel (only significant if source channel != -1)true
if the copy operation succeed, false
otherwisepublic void copyData(java.lang.Object data, java.awt.Dimension dataDim, boolean signed, java.awt.Point dstPt, int dstChannel)
data
- source data array (should be same type than image data type)dataDim
- source data dimension (array length should be >= Dimension.width * Dimension.heigth)signed
- if the source data array should be considered as signed data (meaningful for integer
data type only)dstPt
- destination X,Y position (assume [0,0] if null)dstChannel
- destination channelpublic void copyData(IcyBufferedImage srcImage, java.awt.Rectangle srcRect, java.awt.Point dstPt, int srcChannel, int dstChannel)
srcImage
- source imagesrcRect
- source region to copy (assume whole image if null)dstPt
- destination X,Y position (assume [0,0] if null)srcChannel
- source channel (-1 for all channels)dstChannel
- destination channel (only significant if source channel != -1)public void copyData(IcyBufferedImage srcImage, java.awt.Rectangle srcRect, java.awt.Point dstPt)
srcImage
- source imagesrcRect
- source region to copy (assume whole image if null)dstPt
- destination (assume [0,0] if null)public void copyData(java.awt.image.BufferedImage srcImage, int srcChannel, int dstChannel)
srcImage
- source imagesrcChannel
- source channel to copy (-1 for all channels)dstChannel
- destination channel to receive data (only significant if source channel != -1)public void copyData(java.awt.image.BufferedImage srcImage)
srcImage
- source imagepublic byte[] getRawData(int c, byte[] out, int offset, boolean little)
c
- component indexout
- output array (can be null)offset
- output offsetlittle
- little endian orderpublic byte[] getRawData(int c, boolean little)
c
- component indexlittle
- little endian orderpublic byte[] getRawData(byte[] out, int offset, boolean little)
out
- output array (can be null)offset
- output offsetlittle
- little endian orderpublic byte[] getRawData(boolean little)
little
- little endian orderpublic void setRawData(int c, byte[] data, int offset, boolean little)
c
- component indexdata
- data as byte arrayoffset
- input offsetlittle
- little endian orderpublic void setRawData(int c, byte[] data, boolean little)
c
- component indexdata
- data as byte arraylittle
- little endian orderpublic void setRawData(byte[] data, int offset, boolean little)
data
- data as byte arrayoffset
- input offsetlittle
- little endian orderpublic void setRawData(byte[] data, boolean little)
data
- data as byte arraylittle
- little endian orderpublic IcyColorMap getColorMap(int channel)
@Deprecated public IcyColorMap getColormap(int channel)
getColorMap(int)
instead (different case).@Deprecated public void copyColormap(java.awt.image.BufferedImage srcImage)
setColorMaps(BufferedImage)
instead.public void setColorMaps(java.awt.image.BufferedImage srcImage)
@Deprecated public void setColormaps(java.awt.image.BufferedImage srcImage)
setColorMaps(BufferedImage)
instead (different case).public void setColorMap(int channel, IcyColorMap map, boolean setAlpha)
channel
- channel we want to set the colormapmap
- source colorspace to copysetAlpha
- also set the alpha informationpublic void setColorMap(int channel, IcyColorMap map)
channel
- channel we want to set the colormapmap
- source colorspace to copy@Deprecated public void setColormap(int channel, IcyColorMap map)
setColorMap(int, IcyColorMap, boolean)
instead.public void dataChanged()
public void channelBoundsChanged(int channel)
@Deprecated public void componentBoundsChanged(int component)
channelBoundsChanged(int)
instead.public void addListener(IcyBufferedImageListener listener)
public void removeListener(IcyBufferedImageListener listener)
public void beginUpdate()
public void endUpdate()
public boolean isUpdating()
public void onChanged(CollapsibleEvent object)
ChangeListener
onChanged
in interface ChangeListener
public void colorModelChanged(IcyColorModelEvent e)
colorModelChanged
in interface IcyColorModelListener
public java.lang.String toString()
toString
in class java.awt.image.BufferedImage