1. 16 6月, 2021 1 次提交
    • V
      Fix potential NaN in cv::norm. · fd2b5411
      Vincent Rabaud 提交于
      There can be an int overflow.
      cv::norm( InputArray _src, int normType, InputArray _mask ) is fine,
      not cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _mask ).
      fd2b5411
  2. 03 3月, 2021 1 次提交
    • A
      core: rework code locality · cbfd38bd
      Alexander Alekhin 提交于
      - to reduce binaries size of FFmpeg Windows wrapper
      - MinGW linker doesn't support -ffunction-sections (used for FFmpeg Windows wrapper)
      - move code to improve locality with its used dependencies
      - move UMat::dot() to matmul.dispatch.cpp (Mat::dot() is already there)
      - move UMat::inv() to lapack.cpp
      - move UMat::mul() to arithm.cpp
      - move UMat:eye() to matrix_operations.cpp (near setIdentity() implementation)
      - move normalize(): convert_scale.cpp => norm.cpp
      - move convertAndUnrollScalar(): arithm.cpp => copy.cpp
      - move scalarToRawData(): array.cpp => copy.cpp
      - move transpose(): matrix_operations.cpp => matrix_transform.cpp
      - move flip(), rotate(): copy.cpp => matrix_transform.cpp (rotate90 uses flip and transpose)
      - add 'OPENCV_CORE_EXCLUDE_C_API' CMake variable to exclude compilation of C-API functions from the core module
      - matrix_wrap.cpp: add compile-time checks for CUDA/OpenGL calls
      - the steps above allow to reduce FFmpeg wrapper size for ~1.5Mb (initial size of OpenCV part is about 3Mb)
      
      backport is done to improve merge experience (less conflicts)
      backport of commit: 65eb9467
      cbfd38bd
  3. 02 3月, 2021 1 次提交
    • A
      core: rework code locality · 65eb9467
      Alexander Alekhin 提交于
      - to reduce binaries size of FFmpeg Windows wrapper
      - MinGW linker doesn't support -ffunction-sections (used for FFmpeg Windows wrapper)
      - move code to improve locality with its used dependencies
      - move UMat::dot() to matmul.dispatch.cpp (Mat::dot() is already there)
      - move UMat::inv() to lapack.cpp
      - move UMat::mul() to arithm.cpp
      - move UMat:eye() to matrix_operations.cpp (near setIdentity() implementation)
      - move normalize(): convert_scale.cpp => norm.cpp
      - move convertAndUnrollScalar(): arithm.cpp => copy.cpp
      - move scalarToRawData(): array.cpp => copy.cpp
      - move transpose(): matrix_operations.cpp => matrix_transform.cpp
      - move flip(), rotate(): copy.cpp => matrix_transform.cpp (rotate90 uses flip and transpose)
      - add 'OPENCV_CORE_EXCLUDE_C_API' CMake variable to exclude compilation of C-API functions from the core module
      - matrix_wrap.cpp: add compile-time checks for CUDA/OpenGL calls
      - the steps above allow to reduce FFmpeg wrapper size for ~1.5Mb (initial size of OpenCV part is about 3Mb)
      65eb9467
  4. 19 11月, 2020 1 次提交
    • J
      norm.cpp(normL2Sqr_): improve performance of pipeline · 12b8d542
      Jojo R 提交于
      The most of target machine use one type cpu unit resource
      to execute some one type of instruction, e.g.
      all vx_load API use load/store cpu unit,
      and v_muladd API use mul/mula cpu unit, we interleave
      vx_load and v_muladd to improve performance on most targets like
      RISCV or ARM.
      12b8d542
  5. 08 3月, 2020 1 次提交
  6. 07 3月, 2020 1 次提交
  7. 05 12月, 2019 1 次提交
  8. 28 8月, 2019 1 次提交
  9. 30 11月, 2018 1 次提交
  10. 14 9月, 2018 1 次提交
  11. 10 9月, 2018 1 次提交
    • V
      added basic support for CV_16F (the new datatype etc.) (#12463) · 6d7f5871
      Vadim Pisarevsky 提交于
      * added basic support for CV_16F (the new datatype etc.). CV_USRTYPE1 is now equal to CV_16F, which may break some [rarely used] functionality. We'll see
      
      * fixed just introduced bug in norm; reverted errorneous changes in Torch importer (need to find a better solution)
      
      * addressed some issues found during the PR review
      
      * restored the patch to fix some perf test failures
      6d7f5871
  12. 04 9月, 2018 1 次提交
  13. 02 9月, 2018 1 次提交
  14. 26 6月, 2018 1 次提交
  15. 27 4月, 2018 1 次提交
  16. 26 4月, 2018 1 次提交
  17. 12 2月, 2018 1 次提交