Package loci.formats.meta
Interface IPyramidStore
- All Known Implementing Classes:
OMEPyramidStore
public interface IPyramidStore
Interface for defining pyramid resolutions.
-
Method Summary
Modifier and TypeMethodDescriptionintgetResolutionCount(int image) Retrieve the number of pyramid resolutions defined for the given Image.getResolutionSizeX(int image, int resolution) Retrieve the image width in pixels of the given pyramid resolution.getResolutionSizeY(int image, int resolution) Retrieve the image height in pixels of the given pyramid resolution.voidsetResolutionSizeX(PositiveInteger sizeX, int image, int resolution) Define the image width in pixels of the given pyramid resolution.voidsetResolutionSizeY(PositiveInteger sizeY, int image, int resolution) Define the image height in pixels of the given pyramid resolution.
-
Method Details
-
setResolutionSizeX
Define the image width in pixels of the given pyramid resolution. Both width and height must be defined for each desired resolution.- Parameters:
sizeX- the image width in pixelsimage- the Image (series) indexresolution- the resolution index; expected to be greater than 0 as the largest resolution is defined by the Image itself.- See Also:
-
setResolutionSizeY
Define the image height in pixels of the given pyramid resolution. Both width and height must be defined for each desired resolution.- Parameters:
sizeY- the image height in pixelsimage- the Image (series) indexresolution- the resolution index; expected to be greater than 0 as the largest resolution is defined by the Image itself.- See Also:
-
getResolutionCount
int getResolutionCount(int image) Retrieve the number of pyramid resolutions defined for the given Image.- Parameters:
image- the Image (series) index- Returns:
- the number of valid pyramid resolutions, including the largest resolution; expected to be positive if the Image index is valid.
-
getResolutionSizeX
Retrieve the image width in pixels of the given pyramid resolution.- Parameters:
image- the Image (series) indexresolution- the resolution index; expected to be greater than 0 as the largest resolution is defined by the Image itself.- Returns:
- the width in pixels, or null if either index is invalid
-
getResolutionSizeY
Retrieve the image height in pixels of the given pyramid resolution.- Parameters:
image- the Image (series) indexresolution- the resolution index; expected to be greater than 0 as the largest resolution is defined by the Image itself.- Returns:
- the height in pixels, or null if either index is invalid
-