Skip to content

v2.1.0

Compare
Choose a tag to compare
@hanjinliu hanjinliu released this 06 Jun 05:38
· 184 commits to main since this release

Highlights

  • Design of Axes is thoroughly revised. Now img.axes returns Axes object and a Axes object is a list-like sequence of Axis object. For more information see documentation.
    • If a part of the image axes cannot be determined, such as the returned array of np.stack and np.expand_dims, their axes information used to be lost. From this version, only unknown ones are substituted with UndefAxis object and represented as "#".
    • The very strict or very flexible broadcasting rule can be applied. By default, arrays with axes "yx" and "zx" cannot be added even if their shape is the same. On the other hand, ip.broadcast_arrays can wisely reshape arrays with different shapes and axes.
    • Symbol of axis can be more than one letter. To make clearer, axes of arrays returned from some functions are renamed (e.g. "l" and "r" are renamed to "base" and "dim" in hessian_eig).
  • Slicer object for safer axis-targeted-slicing. See documentation.