PyMaxflow icon indicating copy to clipboard operation
PyMaxflow copied to clipboard

Tutorial for maxflow.fastmin

Open Cq5616 opened this issue 1 year ago • 0 comments

I am trying to solve a multi-label problem using the alpha-expansion move algorithm implemented in maxflow.fastmin.aexpansion_grid(D, V, max_cycles=None, labels=None) I didn't quite understand the definitions of arrays D and V.

For instance, If i have a 5*5 grid and consider 4 labels, what should the sizes of D and V be? It would really help if you had a tutorial or an example on this function. Thank you so much!! image

Cq5616 avatar Nov 22 '24 14:11 Cq5616