Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial for maxflow.fastmin #67

Open
Cq5616 opened this issue Nov 22, 2024 · 0 comments
Open

Tutorial for maxflow.fastmin #67

Cq5616 opened this issue Nov 22, 2024 · 0 comments

Comments

@Cq5616
Copy link

Cq5616 commented Nov 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant