pyfibre.model.tools.utilities module¶
PyFibre Image Segmentation Library
Created by: Frank Longford Created on: 18/02/2019
Last Modified: 18/02/2019
-
pyfibre.model.tools.utilities.mean_binary(binaries, image, iterations=1, min_intensity=0, area_threshold=0, sigma=None)[source]¶ Compares two binary of image and produces a filter based on the overlap
-
pyfibre.model.tools.utilities.region_check(region, min_size=0, min_frac=0, edges=False, max_x=0, max_y=0)[source]¶ Return whether input region passes minimum area and average intensity checks
-
pyfibre.model.tools.utilities.region_swap(masks, images, min_sizes, min_fracs)[source]¶ Performs a region_check on each region present in masks using images as intensity image. If check fails, removes region from mask and performs another region_check using same region with other image as intensity image. If this check passes, assigns region onto other mask.