FASText icon indicating copy to clipboard operation
FASText copied to clipboard

Question about segmenter.cpp

Open zacniewski opened this issue 8 years ago • 2 comments

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?

zacniewski avatar Dec 10 '17 19:12 zacniewski

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

MichalBusta avatar Dec 11 '17 09:12 MichalBusta

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:

  • what is 'response' ? Is it attribute described in https://docs.opencv.org/3.2.0/d2/d29/classcv_1_1KeyPoint.html#a507d41b54805e9ee5042b922e68e4372 ?

  • what is variable 'delataIntResegment' responsible for?

  • and also in FASText.cpp in line 512 value of 'score' is assigned to 'response' of FastKeyPoint instance. What is 'score' in this case?

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

Artur

zacniewski avatar Dec 11 '17 19:12 zacniewski