public interface NDViewerDataSource
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when viewer is closing
|
int[] |
getBounds()
The minimal and maximal pixel coordinates of the image to be viewed
|
String |
getDiskLocation()
Path to where the data is stored on disk, if applicable
|
int |
getImageBitDepth(HashMap<String,Object> axesPositions)
Get the bits per pixel of image with the given axes positions
|
mmcorej.TaggedImage |
getImageForDisplay(HashMap<String,Object> axes,
int resolutionindex,
double xOffset,
double yOffset,
int imageWidth,
int imageHeight)
Retrieve image with the given parameters so it can be displayed
|
Set<HashMap<String,Object>> |
getImageKeys()
Get the axes of all available images in this dataset
|
int |
getMaxResolutionIndex()
Index of the log 2 biggest downsample factor in the pyramid 0 is full
resolution, 1 is downsampled by 2x, 2 is downsampled by 4x, etc
For a non-multi resolution source, should pass 0
|
void |
increaseMaxResolutionLevel(int newMaxResolutionLevel)
Viewer will be viewing at this res index, so make sure it exists
|
int[] getBounds()
mmcorej.TaggedImage getImageForDisplay(HashMap<String,Object> axes, int resolutionindex, double xOffset, double yOffset, int imageWidth, int imageHeight)
axes - Map of axes to indices (e.g. "z": 0, "t": 1) (Note: no position
needed for channels as this is automatically inferredresolutionindex - Index in level of multiresolution pyramid. (0 is
full resolution, 1 is downsampled by 2x, 2 is downsampled by 4x, etcxOffset - leftmost pixel at the requested resolutionyOffset - rightmost pixel at the requested resolutionimageWidth - pixel width of the image at the requested resolutionimageHeight - pixel height of the image at the requested resolutionSet<HashMap<String,Object>> getImageKeys()
int getMaxResolutionIndex()
void increaseMaxResolutionLevel(int newMaxResolutionLevel)
newMaxResolutionLevel - String getDiskLocation()
void close()
Copyright © 2023. All rights reserved.