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:
- regionsndarray
The regions image / label map.
- gradientndarray
The gradient image.
- foregroundndarray
The foreground markers.
- backgroundndarray
The background markers.
- Returns:
- segmentationndarray
The graph-cut segmentation result as boolean array.
- Raises:
- ArgumentError
When the supplied data is erroneous.