mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Terga optimization for integral_8u32s
This commit is contained in:
parent
e37930b649
commit
583ceef6a5
@ -85,7 +85,7 @@ PERF_TEST_P( Size_MatType_OutMatDepth, integral3,
|
||||
|
||||
declare.in(src, WARMUP_RNG).out(sum, sqsum, tilted);
|
||||
|
||||
TEST_CYCLE(100) { integral(src, sum, sqsum, sdepth); }
|
||||
TEST_CYCLE(100) { integral(src, sum, sqsum, tilted, sdepth); }
|
||||
|
||||
SANITY_CHECK(sum);
|
||||
SANITY_CHECK(sqsum);
|
||||
|
@ -211,7 +211,19 @@ void integral_##suffix( T* src, size_t srcstep, ST* sum, size_t sumstep, QT* sqs
|
||||
ST* tilted, size_t tiltedstep, Size size, int cn ) \
|
||||
{ integral_(src, srcstep, sum, sumstep, sqsum, sqsumstep, tilted, tiltedstep, size, cn); }
|
||||
|
||||
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||
DEF_INTEGRAL_FUNC(8u32sOCV, uchar, int, double)
|
||||
|
||||
void integral_8u32s(uchar* src, size_t srcstep, int* sum, size_t sumstep, double* sqsum, size_t sqsumstep,
|
||||
int* tilted, size_t tiltedstep, Size size, int cn )
|
||||
{
|
||||
if (tegra::integral_8u32s(src, srcstep, sum, sumstep, sqsum, sqsumstep, tilted, tiltedstep, size, cn))
|
||||
return;
|
||||
integral_8u32sOCV(src, srcstep, sum, sumstep, sqsum, sqsumstep, tilted, tiltedstep, size, cn);
|
||||
}
|
||||
#else
|
||||
DEF_INTEGRAL_FUNC(8u32s, uchar, int, double)
|
||||
#endif
|
||||
DEF_INTEGRAL_FUNC(8u32f, uchar, float, double)
|
||||
DEF_INTEGRAL_FUNC(8u64f, uchar, double, double)
|
||||
DEF_INTEGRAL_FUNC(32f, float, float, double)
|
||||
|
Loading…
Reference in New Issue
Block a user