pmneila / PyMaxflow

Python library for creating flow networks and computing the maxflow/mincut (aka graph-cuts for Python)
http://pmneila.github.io/PyMaxflow/
247 stars 59 forks source link

Allow default_segm to be passed to what_segment #34

Closed Skielex closed 6 years ago

Skielex commented 6 years ago

Edit: Sorry, I misunderstood the implementation. Never mind :)

The what_segment function has an optional parameter termtype default_segm = SOURCE. The wrapper functions get_segment and get_grid_segments do not currently allow specifying this argument.

It would be useful to allow specifying that argument.