Struct SubBlockStatistics#

Struct Documentation#

struct SubBlockStatistics#

Statistics about all sub-blocks found in a CZI-document.

Public Functions

inline bool IsMIndexValid() const#

Query if the members minMindex and maxMindex are valid. They may be invalid in the case that the sub-blocks do not define an M-index.

Returns:

True if minMindex and maxMindex are valid, false if not.

inline void Invalidate()#

Invalidates this object.

Public Members

int subBlockCount#

The total number of sub-blocks in the CZI-document. We are counting here all sub-block (no matter on which pyramid-layer).

int minMindex#

The minimum M-index (determined from all sub-blocks in the document with a valid M-index). If no valid M-index was present, then this member will have the value std::numeric_limits<int>::max().

int maxMindex#

The maximum M-index (determined from all sub-blocks in the document with a valid M-index). If no valid M-index was present, then this member will have the value std::numeric_limits<int>::min().

IntRect boundingBox#

The minimal axis-aligned-bounding-box determined from all logical coordinates of all sub-blocks in the document.

IntRect boundingBoxLayer0Only#

The minimal axis-aligned-bounding box determined only from the logical coordinates of the sub-blocks on pyramid-layer0 in the document. The top-left corner of this bounding-box gives the coordinate of the origin of the ‘CZI-Pixel-Coordinate-System’ in the coordinate system used by libCZI (which is referred to as ‘raw-subblock-coordinate-system’). See Coordinate Systems for additional information.

CDimBounds dimBounds#

The dimension bounds - the minimum and maximum dimension index determined from all sub-blocks in the CZI-document.

std::map<int, BoundingBoxes> sceneBoundingBoxes#

A map with key scene-index and value bounding box of the scene. Two bounding-boxes are determined - one from checking all sub-blocks (with the specific scene-index) and another one by only considering sub-blocks on pyramid-layer 0. If no scene-indices are present, this map is empty.