-
#include "tensorstore/schema.h"
- DimensionUnits tensorstore::Schema::dimension_units() const;
- absl::Status tensorstore::Schema::Set(DimensionUnits value);
- explicit tensorstore::Schema::operator DimensionUnits() const;
Specifies the physical quantity corresponding to a single index increment along each dimension.
A value of
std::nullopt
indicates that the unit is unknown/unconstrained. A dimension-less quantity can be indicated by a unit ofUnit()
.When creating a new TensorStore, the specified units may be stored as part of the metadata.
When opening an existing TensorStore, the specified units serve as a constraint, to ensure the units are as expected. Additionally, for drivers like neuroglancer_precomputed that support multiple scales, the desired scale can be selected by specifying constraints on the units.