Skip to content

Implementing AVX512 Support for 2 and 4 channel mats for CV_64F format - #13844

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
brad-kelly:integral_avx512_cn234
Feb 20, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
brad-kelly:integral_avx512_cn234

Conversation

@brad-kelly

@brad-kelly brad-kelly commented Feb 15, 2019 •

Copy link
Copy Markdown
Contributor

Merge with extra: opencv/opencv_extra#578

Implementing AVX512 support using universal intrinsics for the cv::integral method when operating on 2, 3 and 4 channel and the result is CV_64F.
Will be following up with single channels support next week.

From opencv_perf_imgproc results of various size Mats:

Name of Test no avx512 avx512 avx512 vs no avx512 (x-factor)
integral::Size_MatType_OutMatDepth::(127x61, 8UC2, CV_64F) 0.024 0.007 3.23
integral::Size_MatType_OutMatDepth::(127x61, 8UC3, CV_64F) 0.035 0.009 3.97
integral::Size_MatType_OutMatDepth::(127x61, 8UC4, CV_64F) 0.046 0.009 4.92
integral::Size_MatType_OutMatDepth::(128x128, 8UC2, CV_64F) 0.049 0.015 3.39
integral::Size_MatType_OutMatDepth::(128x128, 8UC3, CV_64F) 0.074 0.017 4.25
integral::Size_MatType_OutMatDepth::(128x128, 8UC4, CV_64F) 0.101 0.018 5.59
integral::Size_MatType_OutMatDepth::(640x480, 8UC2, CV_64F) 0.962 0.271 3.54
integral::Size_MatType_OutMatDepth::(640x480, 8UC3, CV_64F) 1.437 0.360 3.99
integral::Size_MatType_OutMatDepth::(640x480, 8UC4, CV_64F) 1.977 0.526 3.75
integral::Size_MatType_OutMatDepth::(1920x1080, 8UC2, CV_64F) 6.567 2.553 2.57
integral::Size_MatType_OutMatDepth::(1920x1080, 8UC3, CV_64F) 10.485 4.083 2.57
integral::Size_MatType_OutMatDepth::(1920x1080, 8UC4, CV_64F) 15.050 5.769 2.61
integral::Size_MatType_OutMatDepth::(3840x2160, 8UC2, CV_64F) 26.957 11.793 2.29
integral::Size_MatType_OutMatDepth::(3840x2160, 8UC3, CV_64F) 43.039 17.794 2.42
integral::Size_MatType_OutMatDepth::(3840x2160, 8UC4, CV_64F) 61.650 24.800 2.49
integral_sqsum::Size_MatType_OutMatDepth::(127x61, 8UC2, CV_64F) 0.027 0.014 1.99
integral_sqsum::Size_MatType_OutMatDepth::(127x61, 8UC3, CV_64F) 0.040 0.017 2.38
integral_sqsum::Size_MatType_OutMatDepth::(127x61, 8UC4, CV_64F) 0.055 0.023 2.37
integral_sqsum::Size_MatType_OutMatDepth::(128x128, 8UC2, CV_64F) 0.057 0.027 2.08
integral_sqsum::Size_MatType_OutMatDepth::(128x128, 8UC3, CV_64F) 0.086 0.033 2.64
integral_sqsum::Size_MatType_OutMatDepth::(128x128, 8UC4, CV_64F) 0.131 0.042 3.13
integral_sqsum::Size_MatType_OutMatDepth::(640x480, 8UC2, CV_64F) 1.122 0.517 2.17
integral_sqsum::Size_MatType_OutMatDepth::(640x480, 8UC3, CV_64F) 2.241 0.840 2.67
integral_sqsum::Size_MatType_OutMatDepth::(640x480, 8UC4, CV_64F) 4.097 1.293 3.17
integral_sqsum::Size_MatType_OutMatDepth::(1920x1080, 8UC2, CV_64F) 8.486 5.138 1.65
integral_sqsum::Size_MatType_OutMatDepth::(1920x1080, 8UC3, CV_64F) 19.096 9.136 2.09
integral_sqsum::Size_MatType_OutMatDepth::(1920x1080, 8UC4, CV_64F) 34.238 11.924 2.87
integral_sqsum::Size_MatType_OutMatDepth::(3840x2160, 8UC2, CV_64F) 48.695 24.877 1.96
integral_sqsum::Size_MatType_OutMatDepth::(3840x2160, 8UC3, CV_64F) 78.965 38.599 2.05
integral_sqsum::Size_MatType_OutMatDepth::(3840x2160, 8UC4, CV_64F) 146.174 50.675 2.88
force_builders=Linux AVX2
buildworker:Linux AVX2=linux-3
test_opencl:Linux AVX2=OFF

Comment thread modules/imgproc/src/sumpixels.cpp Resolved

@terfendail terfendail left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@opencv-pushbot
opencv-pushbot merged commit 507f8ad into opencv:3.4 Feb 20, 2019
@alalek alalek mentioned this pull request Feb 26, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants