| it.geosolutions.imageio.plugins.slices2D.IndexManager
All known Subclasses: it.geosolutions.imageio.plugins.slices2D.SliceImageReader,
IndexManager | public interface IndexManager (Code) | | SliceImageReader 's need to implement this interface to provide a
mechanism of index-interpreting to the above layer (working on ND data).
A class of the above layer should get metadata in order to know the inner
structure (coverages, dims) of a datasource. Then, it should specify a
required 2D slice by setting a proper array of indexes for each dimension of
the underlying (sub)dataset. At this point, the belover layer represented by
a
SliceImageReader class should perform a read operation with a
proper imageIndex param retrieved by the first method of this interface. The
second method simply allows to perform the inverse operation, that is:
retrieving a set of indexes, given an absolute 2D slice index.
author: Romagnoli Daniele |
Method Summary | |
public int[] | getSlice2DIndexCoordinates(int requiredSlice2DIndex) Given a specified index, returns a int[] containing
indexing information such as coverageIndex, Nth dimension,
(N-1)th-dimension, until (N-2)th-dimension. | public int | retrieveSlice2DIndex(int imageIndex, int[] selectedIndexOfEachDim) Retrieve a slice2D index, from an imageIndex and a vector of
selectedDims. |
getSlice2DIndexCoordinates | public int[] getSlice2DIndexCoordinates(int requiredSlice2DIndex)(Code) | | Given a specified index, returns a int[] containing
indexing information such as coverageIndex, Nth dimension,
(N-1)th-dimension, until (N-2)th-dimension. In case of 2D subDatasets, it
simply returns the index of the coverage in the source. In case of source
having a single 2D dataset, it returns 0.
Parameters: requiredSlice2DIndex - The requiredSlice2DIndex to be "parsed" the indexes needed to find a required Slice 2D within amulti-subDatasets multi-dimensional source. |
retrieveSlice2DIndex | public int retrieveSlice2DIndex(int imageIndex, int[] selectedIndexOfEachDim)(Code) | | Retrieve a slice2D index, from an imageIndex and a vector of
selectedDims. This method should be used to access (sub)datasets having
more then 2D.
Parameters: imageIndex - Related to a Specific Product contained within a sourceFile ora subDataset Parameters: selectedIndexOfEachDim - An int array containing the required index inthe proper dimension. As an instance, suppose having aproducts with rank=4 and dimensions = [1024,768,10,20] that isa dataset having 1024x768 wider 2D slices, for 10 z-levels at20 time instants. If you want to retrieve the subIndex neededto access to the 3rd z-level of the 7th instant, you shouldspecify a dimensionIndex of [2,6] (starting from zero). |
|
|