komrad36 / kfast Goto Github PK
View Code? Open in Web Editor NEWImplementation of FAST feature detector for computer vision (Rosten 2006) using AVX2 to outperform canonical implementation by up to 600%.
License: MIT License
Implementation of FAST feature detector for computer vision (Rosten 2006) using AVX2 to outperform canonical implementation by up to 600%.
License: MIT License
Hi, firstly thank you very much for your excellent work on KFAST!
I have a question about the 32 byte loads performed in processCols. I noticed that when I run valgrind on KFAST I get some complaints like this:
==21867== Invalid read of size 32
==21867== at 0x5A2D57: _mm256_cmpgt_epi8 (avx2intrin.h:261)
==21867== by 0x5A2D57: processCols<false, false> (KFastAVX2.h:207)
==21867== by 0x5A2D57: void _KFAST<false, true, true>(unsigned char const*, int, int, int, int, std::vector<Keypoint, std::allocator >&, unsigned char) (KFastAVX2.h:401)
==21867== by 0x5A1D5A: KFAST<false, false> (KFastAVX2.h:493)
==21867== Address 0x630ef43 is 307,187 bytes inside a block of size 307,200 alloc'd
From reading the code what I can understand is that, on each row when processing the final set of columns (i.e. < 32 columns left), you load in chunks of 32 bytes and mask out the data beyond the end of the row. This means that for the final row you will load data beyond the end of the buffer, and valgrind thinks this is bad.
I couldn't really find any info on the safety of doing this with AVX, so I wondering if you could comment on it, or maybe point me to some documentation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.