-
#include "tensorstore/index_space/dimension_units.h"
-
DimensionUnitsVector tensorstore::TransformOutputDimensionUnits(
IndexTransformView<> transform,
DimensionUnitsVector output_units); Converts dimension units for the output space to dimension units for the input space.
Input dimensions that correspond to exactly one output dimension via a
OutputIndexMethod::single_input_dimension
map are assigned the unit of the corresponding output dimension, if any, multiplied by the absolute value of the stride.The units of other input dimensions are left unspecified.
- Parameters:¶
- IndexTransformView<> transform¶
Index transform.
- DimensionUnitsVector output_units¶
Units for each output dimension of
transform
.