mirror of
https://github.com/opencv/opencv.git
synced 2025-07-25 22:57:53 +08:00
Change fast corner flags in HAL version from char array to single int
This commit is contained in:
parent
d513fb4c8e
commit
51ceabb2eb
@ -159,15 +159,12 @@ void FAST_t(InputArray _img, std::vector<KeyPoint>& keypoints, int threshold, bo
|
|||||||
}
|
}
|
||||||
|
|
||||||
max0 = K16 < v_max(max0, max1);
|
max0 = K16 < v_max(max0, max1);
|
||||||
int m = -v_reduce_sum(v_reinterpret_as_s8(max0));
|
unsigned int m = v_signmask(v_reinterpret_as_s8(max0));
|
||||||
uchar mflag[16];
|
|
||||||
v_store(mflag, max0);
|
|
||||||
|
|
||||||
for( k = 0; m > 0 && k < 16; k++ )
|
for( k = 0; m > 0 && k < 16; k++, m >>= 1 )
|
||||||
{
|
{
|
||||||
if(mflag[k])
|
if( m & 1 )
|
||||||
{
|
{
|
||||||
--m;
|
|
||||||
cornerpos[ncorners++] = j+k;
|
cornerpos[ncorners++] = j+k;
|
||||||
if(nonmax_suppression)
|
if(nonmax_suppression)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user