public interface ImageCache extends TaggedImageStorage
storagePluginName
Modifier and Type | Method and Description |
---|---|
void |
addImageCacheListener(ImageCacheListener l)
Adds the provided cache listener.
|
int |
getBitDepth()
Returns the bit depth of all images in the image cache.
|
java.util.Set<java.lang.String> |
getChangingKeys()
Get a list of keys that are not identical for every TaggedImage.
|
java.awt.Color |
getChannelColor(int channelIndex)
Returns the preferred display color for a channel, specified by channelIndex.
|
double |
getChannelGamma(int channelIndex)
Returns the gamma for the channel display.
|
int |
getChannelHistogramMax(int channelIndex)
Returns the preferred maximum value for the channel's histogram.
|
int |
getChannelMax(int channelIndex)
Gets the maximum intensity value for a channel display (typically shown
as full intensity color).
|
int |
getChannelMin(int channelIndex)
Gets the minimum intensity value for a channel display (typically shown
as black).
|
java.lang.String |
getChannelName(int channelIndex)
Returns the name of a channel specified by channelIndex.
|
org.json.JSONObject |
getChannelSetting(int channel)
Returns a JSONObject with channel settings for the channel whose index
is the argument.
|
java.lang.String |
getComment()
Gets the overall comment string for this data set.
|
int |
getDisplayMode()
Returns the display mode used by the CompositeImage (composite, color, or grayscale)
|
mmcorej.TaggedImage |
getImage(int channel,
int slice,
int frame,
int position)
Return the TaggedImage at the specified coordinates, or null if that
image does not exist.
|
ImageCacheListener[] |
getImageCacheListeners()
Gets a list of image cache listeners.
|
java.lang.String |
getImageComment(org.json.JSONObject tags)
Returns the image comment for a particular image.
|
boolean |
getIsOpen()
Return true if the ImageCache is still valid, false otherwise.
|
org.json.JSONObject |
getLastImageTags()
Returns the image tags for the last received image.
|
int |
getNumDisplayChannels()
Returns the number of channels in the ImageCache.
|
java.lang.String |
getPixelType()
Returns the pixel type for images in this image cache.
|
void |
removeImageCacheListener(ImageCacheListener l)
Removes an imageCacheListener so that it will no longer be notified
of relevant events.
|
void |
saveAs(TaggedImageStorage newImageFileManager)
Save a new copy of a TaggedImage data set, stored in a TaggedImageStorage
object.
|
void |
saveAs(TaggedImageStorage newImageFileManager,
boolean moveToNewStorage)
Save a new copy of a TaggedImage data set, stored in a TaggedImageStorage
object.
|
void |
setChannelColor(int channel,
int rgb)
Sets the preferred display color for a channel
|
void |
setComment(java.lang.String text)
Set the data set's comment string for this image cache.
|
void |
setImageComment(java.lang.String comment,
org.json.JSONObject tags)
Set the comment string for an individual image.
|
void |
storeChannelDisplaySettings(int channelIndex,
int min,
int max,
double gamma,
int histMax,
int displayMode)
Store the display settings for a particular channel.
|
close, finished, getDataSetSize, getDiskLocation, getDisplayAndComments, getImageTags, getSummaryMetadata, imageKeys, isFinished, lastAcquiredFrame, putImage, setDisplayAndComments, setSummaryMetadata, writeDisplaySettings
void addImageCacheListener(ImageCacheListener l)
java.util.Set<java.lang.String> getChangingKeys()
java.lang.String getComment()
ImageCacheListener[] getImageCacheListeners()
org.json.JSONObject getLastImageTags()
void removeImageCacheListener(ImageCacheListener l)
void saveAs(TaggedImageStorage newImageFileManager)
void saveAs(TaggedImageStorage newImageFileManager, boolean moveToNewStorage)
boolean getIsOpen()
void setComment(java.lang.String text)
void setImageComment(java.lang.String comment, org.json.JSONObject tags)
java.lang.String getImageComment(org.json.JSONObject tags)
void storeChannelDisplaySettings(int channelIndex, int min, int max, double gamma, int histMax, int displayMode)
channelIndex
- - The channel index for which settings are being specifiedmin
- - The minimum display intensity value (shown as black)max
- - The maximum display intensity value (shown as full-intensity color)gamma
- - The gamma value (curvature of the value-to-display curve)histMax
- - The preferred maximum value at which the histogram is displayed.displayMode
- - Composite, Color, or Gray-scaleorg.json.JSONObject getChannelSetting(int channel)
int getBitDepth()
int getDisplayMode()
java.awt.Color getChannelColor(int channelIndex)
void setChannelColor(int channel, int rgb)
channel
- - The channel indexrgb
- - A 6-byte integer specifying the color: e.g., 0xFFFFFF is white.java.lang.String getChannelName(int channelIndex)
int getChannelMin(int channelIndex)
int getChannelMax(int channelIndex)
double getChannelGamma(int channelIndex)
int getChannelHistogramMax(int channelIndex)
int getNumDisplayChannels()
java.lang.String getPixelType()
mmcorej.TaggedImage getImage(int channel, int slice, int frame, int position)
getImage
in interface TaggedImageStorage