Skip to content

Removing views in ImageMatchingMultiSfM is now an option.#2136

Open
servantftransperfect wants to merge 1 commit into
developfrom
dev/imagematching
Open

Removing views in ImageMatchingMultiSfM is now an option.#2136
servantftransperfect wants to merge 1 commit into
developfrom
dev/imagematching

Conversation

@servantftransperfect

Copy link
Copy Markdown
Contributor

In ImageMatchingMultiSfm, all views of A which were also in B were removed (not those of B if in A).

I added a flag (default to True) to be able to deactivate this heuristic.

P.S. This looks very messy to me. While it may had an interest to the author for its use case, this looks very ad hoc.

@servantftransperfect servantftransperfect added this to the 3.4.0 milestone Jun 11, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new boolean parameter removeDuplicates to the ImageMatchingMultiSfM node and the main_imageMatching command-line tool, allowing users to control whether duplicate views from dataset A are removed if they exist in dataset B. This feature addition is accompanied by version updates across several .mg pipeline files. The feedback suggests wrapping a long command-line option definition in main_imageMatching.cpp to improve code readability and adhere to line length standards.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

("outputCombinedSfM", po::value<std::string>(&outputCombinedSfM)->default_value(outputCombinedSfM),
"Output file path for the combined SfMData file (if empty, don't combine).");
"Output file path for the combined SfMData file (if empty, don't combine).")
("removeDuplicates", po::value<bool>(&removeDuplicates)->default_value(removeDuplicates), "Do we remove views from A if they belong to B ?");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The added command-line option line is extremely long (154 characters), which violates standard line length limits and reduces readability. Please wrap the description string to the next line to match the formatting of the other options.

        ("removeDuplicates", po::value<bool>(&removeDuplicates)->default_value(removeDuplicates),
         "Do we remove views from A if they belong to B ?");

@sonarqubecloud

Copy link
Copy Markdown

desc.BoolParam(
name="removeDuplicates",
label="Remove duplicates",
description="Do we remove views from A if they belong to B ?",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description="Do we remove views from A if they belong to B ?",
description="If enabled, views that belong to both A and B will be ignored in A.",

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

Successfully merging this pull request may close these issues.

2 participants