Update of /cvsroot/robotflow/RobotFlow/Vision/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18474
Modified Files:
VisualIntegralDesc.h
Log Message:
Added boundary limit for Euclidean distance.
Index: VisualIntegralDesc.h
===================================================================
RCS file: /cvsroot/robotflow/RobotFlow/Vision/include/VisualIntegralDesc.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** VisualIntegralDesc.h 2 Jun 2005 16:49:38 -0000 1.1
--- VisualIntegralDesc.h 2 Jun 2005 19:58:34 -0000 1.2
***************
*** 284,289 ****
if (dist > 1.0) {
! std::cout << "VisualIntegralDesc::EuclideanDist: Invalid dist=" << dist << std::endl;
! throw new FD::GeneralException("VisualIntegralDesc::EuclideanDist: distance should not be greater than 1.0.",__FILE__,__LINE__);
}
--- 284,288 ----
if (dist > 1.0) {
! return 0.0;
}
|