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.ome.xml.model.primitives.PositiveIntegergetResolutionSizeX(int image, int resolution) Retrieve the image width in pixels of the given pyramid resolution.ome.xml.model.primitives.PositiveIntegergetResolutionSizeY(int image, int resolution) Retrieve the image height in pixels of the given pyramid resolution.voidsetResolutionSizeX(ome.xml.model.primitives.PositiveInteger sizeX, int image, int resolution) Define the image width in pixels of the given pyramid resolution.voidsetResolutionSizeY(ome.xml.model.primitives.PositiveInteger sizeY, int image, int resolution) Define the image height in pixels of the given pyramid resolution.
-
Method Details
-
setResolutionSizeX
void setResolutionSizeX(ome.xml.model.primitives.PositiveInteger sizeX, int image, int resolution) 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
void setResolutionSizeY(ome.xml.model.primitives.PositiveInteger sizeY, int image, int resolution) 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
ome.xml.model.primitives.PositiveInteger getResolutionSizeX(int image, int resolution) 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
ome.xml.model.primitives.PositiveInteger getResolutionSizeY(int image, int resolution) 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
-