pystack3d.cropping module

Functions related to the cropping processing

pystack3d.cropping.cropping(fnames=None, inds_partition=None, queue_incr=None, area=None, output_dirname=None)

Function dedicated to the cropping processing

Parameters:
  • fnames (list of pathlib.Path, optional) – List of ‘.tif’ filenames to process

  • inds_partition (list of ints, optional) – List of indexes to be considered by the global var SHARED_ARRAY when working in multiprocessing

  • queue_incr (multiprocessing.Queue, optional) – Queue passed to the function to interact with the progress bar

  • area (iterable of 4 ints, optional) – Cropping area defined from coordinates (xmin, xmax, ymin, ymax)

  • output_dirname (str, optional) – Directory pathname for process results saving

pystack3d.cropping.inds_from_area(area, fnames, pid_0, output_dirname)

Return imin, imax, jmin, jmax from ‘area’