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

averaged GLCM features (to match NIST's Feature2D) #175

Merged
merged 3 commits into from
Nov 30, 2023

Conversation

friskluft
Copy link
Contributor

No description provided.

@friskluft friskluft changed the title averaged GLCM features averaged GLCM features (to match NIST's Feature2D) Nov 29, 2023
Copy link

sweep-ai bot commented Nov 29, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

Comment on lines +1057 to +1060
double n = static_cast<double> (afv.size()),
ave = std::reduce(afv.begin(), afv.end()) / n;

return ave;
Copy link
Member

Choose a reason for hiding this comment

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

return std::reduce(afv.begin(), afv.end())/afv.size(); should have been sufficient? Am I missing something?

@sameeul sameeul merged commit 15df89f into PolusAI:main Nov 30, 2023
18 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