have a 2048x2048 image and you
user&gt;;;want to crop a 256x256 sub-image out of it.
user&gt; (def src-dims (dims/dimensions [256 256 4] [8192 4 1]))
#'user/src-dims
user&gt; ;;Because we are cropping out of a larger image, we have strided rows
user&gt; ;;but data within a row is contiguous.
user&gt; (def reduced-dims (dims-analytics/reduce-dimensionality src-dims))
#'user/reduced-dims
user&gt; reduced-dims
{:shape [256 1024],
 :strides [8192 1],
 :offsets [0 0],
 :shape-ecounts [256 1024],
 :shape-ecount-s