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 keypoint.octave #32

Open
Zhuifeng414 opened this issue Oct 20, 2022 · 2 comments
Open

Question about keypoint.octave #32

Zhuifeng414 opened this issue Oct 20, 2022 · 2 comments

Comments

@Zhuifeng414
Copy link

Thanks for providing such a handsome sift code. But I really could not figure out why you calculate keypoint.octave like this

keypoint.octave = octave_index + image_index * (2 ** 8) \
               + int(round((extremum_update[2] + 0.5) * 255)) * (2 ** 16)

Thanks.

@rmislam
Copy link
Owner

rmislam commented Nov 2, 2022

Hi @Zhuifeng414, thanks for looking at my code! Is there something specific about this line you want clarification on?

@Lvwenchao
Copy link

I have the same question. Why should the octave and size of kps be calculated in this way

kps.octave = octave_index + s_index * (2 ** 8) + int(round((delta_xyz[2] + 0.5) * 255)) * (2 ** 16)
kps.size = self.sigma0 * (2 ** ((s_index + delta_xyz[2]) / self.intvl)) * (2 ** octave_index + 1)

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

3 participants