Previous topic

medpy.graphcut.graph.Graph.get_source_nodes

Next topic

medpy.graphcut.graph.Graph.inconsistent

This Page

medpy.graphcut.graph.Graph.get_tweights

Graph.get_tweights()[source]

Get the tweights.

Returns:

tweights : dict

All t-weights (terminal-node weights) as {node_id: (weight-source-node, weight-node-sink), …} dict.

Notes

Returns only the t-weights that have been set so far. For nodes with unset t-weight, no entry is returned.