pyfibre.model.tools.convertors module¶
PyFibre Image Segmentation Library
Created by: Frank Longford Created on: 26/11/2019
Last Modified: 26/11/2019
-
pyfibre.model.tools.convertors.binary_to_regions(binary, intensity_image=None, min_size=0, min_frac=0.0)[source]¶ Convert a binary mask image to a set of scikit-image segment objects
-
pyfibre.model.tools.convertors.binary_to_segments(binary, segment_klass, intensity_image=None, min_size=100, min_frac=0.1)[source]¶ Transform binary array into a BaseSegment instance
-
pyfibre.model.tools.convertors.binary_to_stack(binary)[source]¶ Create a segment stack from a global binary
-
pyfibre.model.tools.convertors.networks_to_binary(networks, shape, area_threshold=200, iterations=9, sigma=None)[source]¶ Return a global binary representing areas of an image containing networks
-
pyfibre.model.tools.convertors.networks_to_regions(networks, image=None, shape=None, area_threshold=200, iterations=9, sigma=None)[source]¶ Transform fibre networks into a set of scikit-image segments
-
pyfibre.model.tools.convertors.regions_to_binary(regions, shape)[source]¶ Convert a list of scikit-image segments to a single binary mask
-
pyfibre.model.tools.convertors.regions_to_stack(regions, shape)[source]¶ Convert a list of scikit-image segments to a single binary mask
-
pyfibre.model.tools.convertors.segments_to_binary(segments, shape)[source]¶ Transform list of BaseSegment instances into a binary array