8000 Fix type errors when building colmap with build.py in windows by whuaegeanse · Pull Request #1440 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix type errors when building colmap with build.py in windows #1440

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

Merged
merged 1 commit into from
Feb 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/base/graph_cut.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class MetisGraph {

int GetVertexId(const int idx) { return vertex_idx_to_id_.at(idx); }

int nvtxs = 0;
idx_t nvtxs = 0;
idx_t* xadj = nullptr;
idx_t* vwgt = nullptr;
idx_t* adjncy = nullptr;
Expand Down Expand Up @@ -171,11 +171,11 @@ std::unordered_map<int, int> ComputeNormalizedMinGraphCut(

MetisGraph graph(edges, weights);

int ncon = 1;
int edgecut = -1;
int nparts = num_parts;
idx_t ncon = 1;
idx_t edgecut = -1;
idx_t nparts = num_parts;

int metisOptions[METIS_NOPTIONS];
idx_t metisOptions[METIS_NOPTIONS];
METIS_SetDefaultOptions(metisOptions);

std::vector<idx_t> cut_labels(graph.nvtxs, -1);
Expand Down
0