-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
added detection of inverted Markers, tests included #2055
Conversation
// to get from 255 to 1 | ||
int invBError = _getBorderErrors(~candidateBits-254, dictionary->markerSize, params->markerBorderBits); | ||
// white marker | ||
if(invBError<borderErrors){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix indentation (it is "jumping").
for(int yaw = 30; yaw <= 90; yaw += 50) { | ||
for(double distance = 0.1; distance < 0.7; distance += 0.2) { | ||
for(int pitch = 0; pitch < 360; pitch += (distance == 0.1? 60:180)) { | ||
for(int yaw = 70; yaw <= 120; yaw += 40){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int yaw = 70; yaw <= 120; yaw += 40
yaw: 70, 110 ?
Old yaw values are: 30, 80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even though the detection of a default marker happens using that yaw value, it was not the case for the inverted marker, however, it also occurs in the opposite way, that is, where the inverted marker is detected more easily than the default marker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
* added detection of inverted Markers, tests included * corrections added, default preserved, identation, var, comment
The dictionary has to be inverted too? |
Hi @hamddan4, |
This pullrequest introduces the detection of inverted markers
i.e. it allows to detect white markers on a black background
Inverted Marker
Enclosed-Inverted Marker