Cleaned code
This commit is contained in:
parent
28b2481ac2
commit
48adfdc542
18
main.cpp
18
main.cpp
@ -31,17 +31,6 @@ double sum(CImg<float> img, int startedX, int startedY, int w) {
|
||||
return res;
|
||||
}
|
||||
|
||||
void showMatrix(CImg<float> img) {
|
||||
std::cout << std::endl;
|
||||
for (int i = 0; i < 9 ; i++) {
|
||||
for (int j = 0; j < 9; j++) {
|
||||
std::cout << (double) img(i, j) << " ";
|
||||
}
|
||||
std::cout << std::endl;
|
||||
}
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
Main
|
||||
*******************************************************************************/
|
||||
@ -196,12 +185,9 @@ int main()
|
||||
printf(" Calculate the window size..\n");
|
||||
// Calculate the window size
|
||||
for(unsigned int i = 0; i < vectEMin.size(); i++) {
|
||||
//double d1 = MIN(Euclidean::min(vectEMax), Euclidean::min(vectEMin));
|
||||
//double d2 = MAX(Euclidean::min(vectEMax), Euclidean::min(vectEMin));
|
||||
//double d3 = MIN(Euclidean::max(vectEMax), Euclidean::max(vectEMin));
|
||||
double d4 = MAX(Euclidean::max(vectEMax), Euclidean::max(vectEMin));
|
||||
double d = MAX(Euclidean::max(vectEMax), Euclidean::max(vectEMin));
|
||||
|
||||
wmax = (int)ceil(d4);
|
||||
wmax = (int)ceil(d);
|
||||
if(wmax % 2 == 0) {
|
||||
wmax++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user