Skip to content

test: created a test for modified AHT exploring algorithm#2

Open
MWojniewski wants to merge 1 commit intotboldagh:feat-adaptive-HT-to-core-seedingfrom
MWojniewski:Test_of_new_seeding_algorithm
Open

test: created a test for modified AHT exploring algorithm#2
MWojniewski wants to merge 1 commit intotboldagh:feat-adaptive-HT-to-core-seedingfrom
MWojniewski:Test_of_new_seeding_algorithm

Conversation

@MWojniewski
Copy link
Copy Markdown

Modified version of HoughAccumulatorSectionTest.cpp involves test for modified ExploreParametersSection method. Additionally decision functor and PassIntersectionsCheck method were changed.

@MWojniewski MWojniewski changed the title Create a test for new exploring algorithm test: created a test for modified AHT exploring algorithm Apr 2, 2026
BOOST_AUTO_TEST_SUITE_END()

} No newline at end of file
// Core Engine
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

ok, This would need to go to: HoughAccumulatorSection.hpp file.

for (unsigned idx : thisSection.indices()) {
const auto &m = measurements[idx];
float yL = lineFunctor(m, xMin);
float yR = lineFunctor(m, xMax);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The line functor is expected to be called with a single parameter which is x... no?

const auto &m = measurements[idx];
float yL = lineFunctor(m, xMin);
float yR = lineFunctor(m, xMax);
float yM = (yL + yR) * 0.5;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

If we do expand (above) then this is not valid yM anymore. I would suggest to call isLineInside member of HoughAccumulatorSection

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This would also eliminate the need to repeat 3 times the same kind of code.

{ 0.05, 1.0}, // y = 0.05x + 1
{ 0.08, 1.01}, // y = 0.08x + 1.01
{-0.1, 3.0} // y = -0.1x + 3
};
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Are these the points on lines ? Or line definitions?
Maybe let's generate set of points (e.g. 3) according to the above formulas and feed that into the finder?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Or I may have not understood the test actually. So we need the description.

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