The definition of the grain is base on the value present in`grainId` variable. Therefore one grain corresponds to all the pixel with the same label.
The definition of the grain is based on the corresponding value from the`grainId` variable. Therefore one grain corresponds to all pixels with the same `grainId`label.
The "average" orientation is defined as the main eigen vectoc of the seconde order orientation tensor (see `uvecs.OT2nd`). And can be compute with `aita.mean_grain`.
The "average" orientation is defined as the main eigen vector of the second order orientation tensor (see `uvecs.OT2nd`). And can be computed with `aita.mean_grain`.
`data.orientation_mg` is an orientation `xarray.DataArray` that have the same properties than the original orientation. Therefore all `uvecs` function can be use safely on this `xarray.DataArray`.
%% Cell type:markdown id:double-better tags:
%% Cell type:markdown id: tags:
## Plot colormap
You can compute colormap for both `orientation` and `orientation_mg`