public static class TestImgFormat.Metadata extends AbstractMetadata implements HasColorTable
DataHandle<Location>.
Fake specification should be accessed by AbstractMetadata.getSource()
NB: Because FakeFormat images can be dynamically constructed in memory, ColorTables can be generated before reading image planes.
HasColorTable,
Serialized Form| Constructor and Description |
|---|
Metadata() |
| Modifier and Type | Method and Description |
|---|---|
net.imglib2.display.ColorTable |
getColorTable(int imageIndex,
long planeIndex)
Returns the current color table for this dataset
|
net.imglib2.display.ColorTable[][] |
getLuts()
Gets the lookup table attached to this dataset
|
int |
getScaleFactor() |
int[][] |
getValueToIndex()
Gets the pixel value to index maps for this dataset
|
void |
populateImageMetadata()
Generates ImageMetadata based on the id of this dataset.
|
void |
setLuts(net.imglib2.display.ColorTable[][] luts)
Sets the lookup table for this dataset.
|
void |
setValueToIndex(int[][] valueToIndex)
Sets the pixel value to index maps for this dataset
|
add, close, createImageMetadata, get, getAll, getDatasetName, getDatasetSize, getDestinationLocation, getImageCount, getSource, getSourceLocation, getTable, isFiltered, setDatasetName, setDestinationLocation, setFiltered, setSource, setSourceLocation, setTablecloseasBrowsableLocation, asBrowsableLocation, getFormat, getFormatNamegetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic int getScaleFactor()
public net.imglib2.display.ColorTable[][] getLuts()
public void setLuts(net.imglib2.display.ColorTable[][] luts)
luts - A 2D array of ColorTables. Indexed by image index and plane
plane index.public int[][] getValueToIndex()
public void setValueToIndex(int[][] valueToIndex)
public net.imglib2.display.ColorTable getColorTable(int imageIndex, long planeIndex)
getColorTable in interface HasColorTablepublic void populateImageMetadata()
populateImageMetadata in interface MetadataCopyright © 2011–2026 SCIFIO. All rights reserved.