Indent
This commit is contained in:
parent
61f2dfebb2
commit
791ac3462c
44
main.cpp
44
main.cpp
@ -17,36 +17,36 @@
|
|||||||
using namespace cimg_library;
|
using namespace cimg_library;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
double min(std::vector<Euclidean> vect) {
|
double min(std::vector<Euclidean> vect) {
|
||||||
double min = (*vect.begin()).getDistance();
|
double min = (*vect.begin()).getDistance();
|
||||||
std::vector<Euclidean>::iterator it;
|
std::vector<Euclidean>::iterator it;
|
||||||
|
|
||||||
for (it = vect.begin() + 1; it != vect.end(); it++) {
|
for (it = vect.begin() + 1; it != vect.end(); it++) {
|
||||||
if ((*it).getDistance() < min) {
|
if ((*it).getDistance() < min) {
|
||||||
min = (*it).getDistance();
|
min = (*it).getDistance();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return min;
|
return min;
|
||||||
}
|
}
|
||||||
|
|
||||||
double max(std::vector<Euclidean> vect) {
|
double max(std::vector<Euclidean> vect) {
|
||||||
double max = (*vect.begin()).getDistance();
|
double max = (*vect.begin()).getDistance();
|
||||||
std::vector<Euclidean>::iterator it;
|
std::vector<Euclidean>::iterator it;
|
||||||
|
|
||||||
for (it = vect.begin() + 1; it != vect.end(); it++) {
|
for (it = vect.begin() + 1; it != vect.end(); it++) {
|
||||||
if ((*it).getDistance() > max) {
|
if ((*it).getDistance() > max) {
|
||||||
max = (*it).getDistance();
|
max = (*it).getDistance();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return max;
|
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