[Feat] OpenCV local feature orientation is oppositte
See original GitHub issueNow 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@edgarriba I will do PR soon
@ducha-aiki what should we do here ?