revanalyzer.generators.utils.make_cut

revanalyzer.generators.utils.make_cut(A, L, cut_size, idx)

Making subsample cut for a given 3D array.

Input:

A(np.array): initial 3D array;

L (tuple (int, int, int)): linear image sizes in x, y and z directions;

cut_size (list [int, int, int]): linear image sizes of subsample;

idx (int): index of subcube (0,1,..8). idx = 0 corresponds to the center subsample, idx = 1,..8 corrspond to the corner subsamples.