[TASK] Move gauss filter function to private section.

This commit is contained in:
Jan Philipp Timme 2016-01-05 17:32:25 +01:00
parent deb273cc4a
commit 3194a084e6
1 changed files with 6 additions and 6 deletions

View File

@ -31,6 +31,12 @@ class CannyEdgeMachine {
double t_low;
double t_high;
double gauss(int x, int y, double sigma) {
// e^-((x^2 + y^2)/(sigma^2))
double upper_part = pow(M_E, (-1.0) * ( (pow(x, 2)+pow(y, 2))/pow(sigma, 2) ) );
return upper_part;
};
public:
CannyEdgeMachine(LazyImage* original, LazyImage* working_copy){
this->original = original;
@ -75,12 +81,6 @@ class CannyEdgeMachine {
}
};
double gauss(int x, int y, double sigma) {
// e^-((x^2 + y^2)/(sigma^2))
double upper_part = pow(M_E, (-1.0) * ( (pow(x, 2)+pow(y, 2))/pow(sigma, 2) ) );
return upper_part;
};
void doGaussBlur(void) {
int filter_width = this->filter_size;
double sigma = this->filter_sigma;