Skip to content

Remove function SimdHogDirectionHistograms - #951

Merged
ermig1979 merged 3 commits into
devfrom
cursor/remove-hog-direction-histograms-0f2c
Sep 9, 2026
Merged

Remove function SimdHogDirectionHistograms#951
ermig1979 merged 3 commits into
devfrom
cursor/remove-hog-direction-histograms-0f2c

Conversation

@ermig1979

@ermig1979 ermig1979 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Remove deprecated SimdHogDirectionHistograms and its C++ wrapper Simd::HogDirectionHistograms.

Changes

  • Remove the C API from SimdLib.h / SimdLib.cpp.
  • Remove the C++ wrapper from SimdLib.hpp.
  • Remove Base, SSE4.1, AVX2, AVX-512BW, NEON, and SVE2 implementations, including helper AddRowToHistograms.
  • Keep other Hog APIs (HogExtractFeatures, HogDeinterleave, HogFilterSeparable) and their *Hog.cpp translation units.
  • Keep AVX-512BW CovertDifference and SVE2 HogTailMask / HogDifferenceLo / HogDifferenceHi, which are still used by HogExtractFeatures.
  • Remove HogDirectionHistograms auto-tests from TestHog.cpp / Test.cpp.
  • Update release notes for 7.2.166 in docs/2026.html.

Python wrapper / VS2022

  • The Python wrapper does not expose SimdHogDirectionHistograms, so py/SimdPy is unchanged.
  • prj/vs2022 project files are unchanged because Hog source files still contain the remaining Hog functions and tests.

Testing

Release CMake build with g++ (-DSIMD_SHARED=ON):

  • nm -D libSimd.so exports SimdHogDeinterleave, SimdHogExtractFeatures, SimdHogFilterSeparable only.
  • ./Test "-r=.." -fi=Hog -tt=1 -ts=1 passed (remaining Hog tests).
  • ./Test "-r=.." -fi=HogDirectionHistograms reports no matching tests.
  • python3 ./Test.py -r=.. -i Hog and -i Sobel completed successfully.
  • aarch64 cross-compile of SimdSve2Hog.cpp and SimdNeonHog.cpp succeeded after restoring the SVE2 helpers.
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 9, 2026 09:36
Drop the C API, C++ wrapper, Base/SSE4.1/AVX2/AVX-512BW/NEON/SVE2
implementations, helper AddRowToHistograms, and related tests.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
The helper lived beside HogDirectionHistograms but is still used by
HogFeatureExtractor.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
@ermig1979
ermig1979 marked this pull request as ready for review September 9, 2026 09:48
HogTailMask, HogDifferenceLo, and HogDifferenceHi lived beside
HogDirectionHistograms but are still required by HogFeatureExtractor.

Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
@ermig1979
ermig1979 merged commit a29bca7 into dev Sep 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants