Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Tetragramm
GitHub Repository: Tetragramm/opencv
Path: blob/master/modules/features2d/src/fast.hpp
16337 views
1
/* This is FAST corner detector, contributed to OpenCV by the author, Edward Rosten.
2
Below is the original copyright and the references */
3
4
/*
5
Copyright (c) 2006, 2008 Edward Rosten
6
All rights reserved.
7
8
Redistribution and use in source and binary forms, with or without
9
modification, are permitted provided that the following conditions
10
are met:
11
12
*Redistributions of source code must retain the above copyright
13
notice, this list of conditions and the following disclaimer.
14
15
*Redistributions in binary form must reproduce the above copyright
16
notice, this list of conditions and the following disclaimer in the
17
documentation and/or other materials provided with the distribution.
18
19
*Neither the name of the University of Cambridge nor the names of
20
its contributors may be used to endorse or promote products derived
21
from this software without specific prior written permission.
22
23
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
27
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
*/
35
36
/*
37
The references are:
38
* Machine learning for high-speed corner detection,
39
E. Rosten and T. Drummond, ECCV 2006
40
* Faster and better: A machine learning approach to corner detection
41
E. Rosten, R. Porter and T. Drummond, PAMI, 2009
42
*/
43
44
#ifndef OPENCV_FEATURES2D_FAST_HPP
45
#define OPENCV_FEATURES2D_FAST_HPP
46
47
namespace cv
48
{
49
namespace opt_AVX2
50
{
51
#if CV_TRY_AVX2
52
class FAST_t_patternSize16_AVX2
53
{
54
public:
55
static Ptr<FAST_t_patternSize16_AVX2> getImpl(int _cols, int _threshold, bool _nonmax_suppression, const int* _pixel);
56
virtual void process(int &j, const uchar* &ptr, uchar* curr, int* cornerpos, int &ncorners) = 0;
57
virtual ~FAST_t_patternSize16_AVX2() {};
58
};
59
#endif
60
}
61
}
62
#endif
63
64