lcat package¶
Subpackages¶
Submodules¶
lcat.util module¶
Utility functions for the lcat toolkit.
-
lcat.util.
clear_border
(labels, axis=None, in_place=False)[source]¶ Clears any labeled components touching either border along the given axes (in axis).
-
lcat.util.
crop_to_box
(arr, box)[source]¶ Given an array arr and boundaries boundaries (such as is returned by get_bounding_box), return arr cropped to boundaries.
-
lcat.util.
get_bounding_box
(arr)[source]¶ Given an array of values, returns an list of tuples, where each tuple represents the extent of the non-zero values in arr along a particular axis.
Inspired by http://stackoverflow.com/questions/31400769/bounding-box-of-numpy-array
Module contents¶
Main package of the Lung Cancer Action Team toolkit.