Previous topic

medpy.graphcut.wrapper.graphcut_subprocesses

Next topic

Core functionalities and shared exception objects (medpy.core)

This Page

medpy.graphcut.wrapper.graphcut_stawiaski

medpy.graphcut.wrapper.graphcut_stawiaski(regions, gradient=False, foreground=False, background=False)[source]

Executes a Stawiaski label graph cut.

Parameters:

regions : ndarray

The regions image / label map.

gradient : ndarray

The gradient image.

foreground : ndarray

The foreground markers.

background : ndarray

The background markers.

Returns:

segmentation : ndarray

The graph-cut segmentation result as boolean array.

Raises:

ArgumentError

When the supplied data is erroneous.