Skip to content

Direction aware convexity measure#47

Open
ntonci wants to merge 12 commits intomasterfrom
feature/new_test
Open

Direction aware convexity measure#47
ntonci wants to merge 12 commits intomasterfrom
feature/new_test

Conversation

@ntonci
Copy link
Copy Markdown
Contributor

@ntonci ntonci commented Aug 13, 2019

Implements a direction aware convexity measure.
The normals are projected onto planes defined by the kernel points and z direction, afterwards convexity measure is calculated from these.

Also adds two new unit tests without the ground truth data.

@ntonci ntonci requested review from ffurrer and margaritaG August 13, 2019 14:58
Copy link
Copy Markdown
Contributor

@ffurrer ffurrer left a comment

Choose a reason for hiding this comment

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

Sorry, did this review apparently a long time ago but never submitted it.

LGTM maybe double check, that the default behaviour is the same as before.

"The threshold of what is still convex.", 0.97, 0.0, 1.0)
min_convexity.add(
"min_convexity_projection_threshold", double_t, 0,
"The threshold for dot product between normal and projection plane normal. If the value is close to 1.0 it means that the projected normal is less reliable and should be discarded.",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is it not close to 0?


// Constant cv::Mats.
cv::Mat zeros = cv::Mat::zeros(depth_map.size(), CV_32FC1);
cv::Mat ones = cv::Mat::ones(depth_map.size(), CV_32FC1);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also make them const, if you write it in the comment :)
if we need them in any other method, we could also construct them in the constructor, but probably fine.

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