comparison layer/ImageRegionFinder.cpp @ 682:1a0dfcbffaf1

Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author Chris Cannam
date Tue, 26 Nov 2013 14:06:40 +0000
parents 86a112b5b319
children b66fb15de477
comparison
equal deleted inserted replaced
681:eaf4446a1bef 682:1a0dfcbffaf1
116 float dr = float(qRed(a) - qRed(b)) / 255.f; 116 float dr = float(qRed(a) - qRed(b)) / 255.f;
117 float dg = float(qGreen(a) - qGreen(b)) / 255.f; 117 float dg = float(qGreen(a) - qGreen(b)) / 255.f;
118 float db = float(qBlue(a) - qBlue(b)) / 255.f; 118 float db = float(qBlue(a) - qBlue(b)) / 255.f;
119 float dist = sqrtf(dr * dr + dg * dg + db * db); 119 float dist = sqrtf(dr * dr + dg * dg + db * db);
120 120
121 // std::cerr << "thresh=" << thresh << ", dist=" << dist << std::endl; 121 // cerr << "thresh=" << thresh << ", dist=" << dist << endl;
122 122
123 return (dist < thresh); 123 return (dist < thresh);
124 } 124 }
125 125