elf.segmentation
Graph-based instance segmentation based on clustering, (lifted) multicut, mutex watershed and more.
Examples for graph-based segmentation with elf.segmentation
can be found in example/segmentation and for embedding-based segmentation in example/embeddings.
1"""Graph-based instance segmentation based on clustering, (lifted) multicut, mutex watershed and more. 2 3Examples for graph-based segmentation with `elf.segmentation` can be found in [example/segmentation](https://github.com/constantinpape/elf/tree/master/example/segmentation) and for embedding-based segmentation in [example/embeddings](https://github.com/constantinpape/elf/tree/master/example/embeddings). 4""" 5 6from .clustering import (agglomerative_clustering, 7 cluster_segmentation, cluster_segmentation_mala, 8 mala_clustering) 9from .features import (compute_affinity_features, compute_boundary_features, compute_boundary_mean_and_length, 10 compute_grid_graph, compute_grid_graph_affinity_features, compute_grid_graph_image_features, 11 compute_rag, compute_region_features, 12 project_node_labels_to_pixels) 13from .lifted_multicut import get_lifted_multicut_solver 14from .multicut import get_multicut_solver, compute_edge_costs 15from .watershed import distance_transform_watershed, stacked_watershed 16from .workflows import edge_training, multicut_segmentation, multicut_workflow, simple_multicut_workflow 17from .gasp import GaspFromAffinities, run_GASP