summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/skittle.cc
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/ovision/see/skittle.cc')
-rw-r--r--2005/i/robert/src/ovision/see/skittle.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/2005/i/robert/src/ovision/see/skittle.cc b/2005/i/robert/src/ovision/see/skittle.cc
index 047455e..f50705d 100644
--- a/2005/i/robert/src/ovision/see/skittle.cc
+++ b/2005/i/robert/src/ovision/see/skittle.cc
@@ -43,7 +43,7 @@ Skittle::pca (const Zone &zone)
for (int x = xmin; x < xmax; x += jump)
if (segm_->giveColor (img_->tabData_ + ((tmpY + x) * 3), true, true) == zone.color)
{
- *f2 << x << " " << y << std::endl;
+// *f2 << x << " " << y << std::endl;
Hpoint h (x, y);
l.push_back (h);
}
@@ -62,7 +62,7 @@ Skittle::climb (const int startX, int startY, const int color)
&& (startY > 0))
{
--startY;
- *f << startX << " " << startY << "\n";
+// *f << startX << " " << startY << "\n";
}
return startY;
}
@@ -74,7 +74,7 @@ Skittle::whereIsReflectBand (const Zone &zone, const std::vector<Zone> &listRefl
const double minAreaRatio = 0.1;
const double maxAreaRatio = 0.4;
// Test les variables de composantes principales + liste transmise
- if (pcX_ || !pcY_ || listReflectBand.size ())
+ if (!pcX_ || !pcY_ || listReflectBand.size ())
return error;
// Analyse de la taille
if (zone.area < minAreaRatio || zone.area > maxAreaRatio) // valeur réelle 0.2
@@ -151,8 +151,8 @@ bool
Skittle::analyse (Zone &zone, const std::vector<Zone> &listReflectBand)
{
// delete f; delete f2;
- f = new std::ofstream ("data", std::ios_base::trunc);
- f2 = new std::ofstream ("data2", std::ios_base::trunc);
+// f = new std::ofstream ("data", std::ios_base::trunc);
+// f2 = new std::ofstream ("data2", std::ios_base::trunc);
// group est partiel ?
// if (zone.partial)
// quille verticale sur l'image ?
@@ -180,8 +180,8 @@ Skittle::analyse (Zone &zone, const std::vector<Zone> &listReflectBand)
else zone.alone = false;
- f->close ();
- f2->close ();
+// f->close ();
+// f2->close ();
return true;
}