question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feat] OpenCV local feature orientation is oppositte

See original GitHub issue

Now to extract the same patches as OpenCV one needs to convert by multiplication by -1:

from kornia.feature import laf_from_center_scale_ori as get_laf
def laf_from_opencv_kpts(kpts, mrSize=6.0, device=torch.device('cpu')):
    N = len(kpts)
    xy = torch.tensor([(x.pt[0], x.pt[1]) for x in kpts ], device=device, dtype=torch.float).view(1, N, 2)
    scales = torch.tensor([(mrSize * x.size) for x in kpts ], device=device, dtype=torch.float).view(1, N, 1, 1)
    angles = torch.tensor([(x.angle) for x in kpts ], device=device, dtype=torch.float).view(1, N, 1)
    laf = get_laf(xy, scales, -angles)
    return laf

ToDo: make the same direction, as in OpenCV.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ducha-aikicommented, Aug 29, 2020

@edgarriba I will do PR soon

0reactions
edgarribacommented, Aug 29, 2020

@ducha-aiki what should we do here ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Detection and Description - OpenCV
We know a great deal about feature detectors and descriptors. It is time to learn how to match different descriptors. OpenCV provides two...
Read more >
Improving Keypoint Orientation Assignment
The purpose of orientation assignment is that it enables any subsequently derived image features to be invariant to in-plane image rotation by rotating...
Read more >
Image Matching Across Wide Baselines: From Paper to Practice
Local features became a staple in computer vision with the ... We optionally do the same in the opposite direction,.
Read more >
(PDF) Improving Keypoint Orientation Assignment
PDF | Detection and description of local image features has proven ... Often, this process includes an orientation assignment step to render ...
Read more >
Learning OpenCV - BogoToBogo
botic dreams in a great environment featuring world-class talent while also supporting my time on this book and supporting OpenCV itself. Adrian Adds...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found