Skip to content

Fix #34#1304

Open
MathieuCarriere wants to merge 7 commits intoGUDHI:masterfrom
MathieuCarriere:Fix_#34
Open

Fix #34#1304
MathieuCarriere wants to merge 7 commits intoGUDHI:masterfrom
MathieuCarriere:Fix_#34

Conversation

@MathieuCarriere
Copy link
Collaborator

  • Fixed typo "Scalling" ---> "Scaling"
  • Made the approximation (kernel becomes zero after 2*sigma) controllable with extra (optional) parameter
  • Fixed the Gaussian formula

namespace Persistence_representations {

/**
* This is a simple procedure to create n by n (or 2*pixel_radius times 2*pixel_radius) cubical approximation of a
Copy link
Member

Choose a reason for hiding this comment

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

The actual size seems to be 2 * pixel_radius + 1 squared.
Should we explain here what the new approximation means for the standard deviation of the Gaussian? It isn't obvious from the name.

* @ingroup Persistence_representations
**/
inline std::vector<std::vector<double> > create_Gaussian_filter(std::size_t pixel_radius, double sigma)
inline std::vector<std::vector<double> > create_Gaussian_filter(std::size_t pixel_radius, double approximation=2)
Copy link
Member

Choose a reason for hiding this comment

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

We'll have to make sure to mention that in the release notes, old code will still compile but may silently change meaning, with an argument meant as sigma (and ignored) now interpreted as approximation.

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.

[Persistence_representations - Persistence_heat_maps] create_Gaussian_filter ignores its second argument

2 participants