spatial_segmentation

muse_origin.spatial_segmentation(Nx, Ny, NbSubcube, start=None)[source]

Compute indices to split spatially in NbSubcube x NbSubcube regions.

Each zone is computed from the left to the right and the top to the bottom First pixel of the first zone has coordinates : (row,col) = (Nx,1).

Parameters
Nxint

Number of columns

Nyint

Number of rows

NbSubcubeint

Number of subcubes for the spatial segmentation

starttuple

if not None, the tupe is the (y,x) starting point

Returns
intx, intyint, int

limits in pixels of the columns/rows for each zone