Skip to content
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

Question about segmenter.cpp #34

Open
zacniewski opened this issue Dec 10, 2017 · 2 comments
Open

Question about segmenter.cpp #34

zacniewski opened this issue Dec 10, 2017 · 2 comments

Comments

@zacniewski
Copy link

Hi Michal,

Could you give some details about code after line 749 in Segmenter.cpp file?
I mean after if(!segmImg.empty()) What is that code doing?

@MichalBusta
Copy link
Owner

Hi Artur,
brief code description can be "speed up":

  • each segmentation comes with keypoints, on that segmentation - the code does check if the keypoint intensity for segmentation is almost same (= will probably output same segmentation), the keypoints are marked as "not to be segmented again".
  • the second part is merging same segmentations (based on IoU).

Michal

@zacniewski
Copy link
Author

zacniewski commented Dec 11, 2017

Hi Michal,
Thanks for your answer. Line 774 in segmenter.cpp is:
if( abs(abs( pixVal - intCheck.val[0]) + abs( img1_keypoints[i].response - kpCheck.response) ) <= this->delataIntResegment )

I'm wondering:

I have some assumptions, but it would be nice if you could give me some hints :)

Artur

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

No branches or pull requests

2 participants