fixed cs, removed useless code
This commit is contained in:
parent
7f53eaa142
commit
3191444732
32
main.cpp
32
main.cpp
@ -16,37 +16,9 @@
|
|||||||
|
|
||||||
using namespace cimg_library;
|
using namespace cimg_library;
|
||||||
|
|
||||||
/*
|
|
||||||
double min(std::vector<Euclidean> vect) {
|
|
||||||
double min = (*vect.begin()).getDistance();
|
|
||||||
std::vector<Euclidean>::iterator it;
|
|
||||||
|
|
||||||
for (it = vect.begin() + 1; it != vect.end(); it++) {
|
|
||||||
if ((*it).getDistance() < min) {
|
|
||||||
min = (*it).getDistance();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return min;
|
|
||||||
}
|
|
||||||
|
|
||||||
double max(std::vector<Euclidean> vect) {
|
|
||||||
double max = (*vect.begin()).getDistance();
|
|
||||||
std::vector<Euclidean>::iterator it;
|
|
||||||
|
|
||||||
for (it = vect.begin() + 1; it != vect.end(); it++) {
|
|
||||||
if ((*it).getDistance() > max) {
|
|
||||||
max = (*it).getDistance();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return max;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
Main
|
Main
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
CImg<unsigned char> imgLena("lena.bmp");
|
CImg<unsigned char> imgLena("lena.bmp");
|
||||||
|
Loading…
Reference in New Issue
Block a user