Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACF processing fixes and test features #43

Merged
merged 3 commits into from
Apr 3, 2018
Merged

Conversation

headupinclouds
Copy link
Contributor

  • make acf a full fledged iOS acf-detect.app

    • XCODE_BUNDLE_IDENTIFIER for use with ios-deploy
    • add plist.in to support file sharing (viewable output files)
    • add command line option for dumping pyramids as flat images for analysis
    • is now compatible with ios-deploy
    • add argv preprocessing via regex_replace of regex(“HOME”) w/ getenv(HOME) — this allows passing generic command line arguments from the command line for use with ios-deploy, since we don’t know the path of the installed executable and associated data (this is similar to the gauze generator expressions used for cross platform unit tests)
  • add acf-detect test/tune features

    • add randomShapes() function to draw some random patterns w/ various colors (lines, ellipses, rectangles) — this was used initially to support gpu/cpu pyramid testing on mobile devices
    • support internal pyramid drawing for analysis
    • unify include style
    • make VideoSource respect “—random” command line option (a separate class can be added (possibly with the ability to insert random faces))
  • clip gradient values to upper/lower bounds of the lookup table in gradientMex:gradMag() — this replaces a more complex function that was most likely aiming to do the same thing but was actually incorrectly modifying the orientation bins

  • fix gradhist shader multi-channel orientation histogramming binning interpolation logic (this was correct but missed an edge case where orientations of 1.0 were counted in the bin==1 instead of bin==0

  • add dodecagon test image to the test files

  • formatting

  • add CMakeLists.txt code block describing HUNTER_KEEP_PACKAGES_SOURCES option — somewhat pedantic, but a useful build configuration for development tasks

  • workaround for OpenCV protobuf compiler crash w/ ios build for local builds — this may be limited to xcode 9.1 but should be fine since the opencv_dnn module isn’t used by acf anyway

* make acf a full fledged iOS acf-detect.app
    + XCODE_BUNDLE_IDENTIFIER for use with ios-deploy
    + add plist.in to support file sharing (viewable output files)
    + add command line option for dumping pyramids as flat images for analysis
    + is now compatible with ios-deploy
    + add argv preprocessing via regex_replace of regex(“HOME”)  w/ getenv(HOME) — this allows passing generic command line arguments from the command line for use with ios-deploy, since we don’t know the path of the installed executable and associated data (this is similar to the gauze generator expressions used for cross platform unit tests)

* add acf-detect test/tune features
    + add randomShapes() function to draw some random patterns w/ various colors (lines, ellipses, rectangles) — this was used initially to support gpu/cpu pyramid testing on mobile devices
    + support internal pyramid drawing for analysis
    + unify include style
    + make VideoSource respect “—random” command line option (a separate class can be added (possibly with the ability to insert random faces))

* clip gradient values to upper/lower bounds of the lookup table in gradientMex:gradMag() —  this replaces a more complex function that was most likely aiming to do the same thing but was actually incorrectly modifying the orientation bins

* fix gradhist shader multi-channel orientation histogramming binning interpolation logic (this was correct but missed an edge case where orientations of 1.0 were counted in the bin==1 instead of bin==0

* add dodecagon test image to the test files

* formatting

* add CMakeLists.txt code block describing  HUNTER_KEEP_PACKAGES_SOURCES option — somewhat pedantic, but a useful build configuration for development tasks

* workaround for OpenCV protobuf compiler crash w/ ios build for local builds — this may be limited to xcode 9.1 but should be fine since the opencv_dnn module isn’t used by acf anyway
@@ -0,0 +1,10 @@
string(COMPARE EQUAL "${CMAKE_OSX_SYSROOT}" "iphoneos" _is_ios)
if(_is_ios)
Copy link
Contributor

Choose a reason for hiding this comment

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

if(IOS) should work fine here

@headupinclouds headupinclouds merged commit ce7e698 into master Apr 3, 2018
@headupinclouds headupinclouds deleted the pr.fix.gradhist branch April 3, 2018 20:03
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