if( i < img.rows - 3 )
{
j = 3;
- #if 0 //CV_SSE2
+ #if CV_SSE2
+ if( patternSize == 16 )
+ {
for(; j < img.cols - 16 - 3; j += 16, ptr += 16)
{
__m128i m0, m1;
curr[j+k] = (uchar)cornerScore<patternSize>(ptr+k, pixel, threshold);
}
}
+ }
#endif
for( ; j < img.cols - 3; j++, ptr++ )
{
pixel[k] = pixel[k - patternSize];
}
+#if 0
static void testCorner(const uchar* ptr, const int pixel[], int K, int N, int threshold) {
// check that with the computed "threshold" the pixel is still a corner
// and that with the increased-by-1 "threshold" the pixel is not a corner anymore
(delta == 1 && std::max(c0, c1) <= K) );
}
}
+#endif
template<>
int cornerScore<16>(const uchar* ptr, const int pixel[], int threshold)
static inline void
move_411_block(int yTL, int yTR, int yBL, int yBR, int u, int v,
- int rowPixels, unsigned char * rgb)
+ int /*rowPixels*/, unsigned char * rgb)
{
const int rvScale = 91881;
const int guScale = -22553;