From: Pierre M. <sid...@us...> - 2005-06-02 20:06:11
|
Update of /cvsroot/robotflow/RobotFlow/Vision/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21981 Modified Files: IntegralEdgesOriExtraction.cc Log Message: Made explicit cast for sqrt and atan2 parameters. Index: IntegralEdgesOriExtraction.cc =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/Vision/src/IntegralEdgesOriExtraction.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IntegralEdgesOriExtraction.cc 2 Jun 2005 16:54:00 -0000 1.1 --- IntegralEdgesOriExtraction.cc 2 Jun 2005 20:06:01 -0000 1.2 *************** *** 431,435 **** for (p=0; p<m_numPixels; p++) { // Compute edge strength ! float strength = sqrt((*p_oriXPixels)*(*p_oriXPixels) + (*p_oriYPixels)*(*p_oriYPixels)); if (strength < m_edgesStrTresh) { strength = 0; --- 431,435 ---- for (p=0; p<m_numPixels; p++) { // Compute edge strength ! float strength = sqrt((float)((*p_oriXPixels)*(*p_oriXPixels) + (*p_oriYPixels)*(*p_oriYPixels))); if (strength < m_edgesStrTresh) { strength = 0; *************** *** 441,445 **** // Compute edge orientation // Orientation will be between [0, 2PI] ! float angle = atan2(*p_oriYPixels, *p_oriXPixels) + k_IEOE_pi; // Determine the orientation image channel --- 441,445 ---- // Compute edge orientation // Orientation will be between [0, 2PI] ! float angle = atan2((float)(*p_oriYPixels), (float)(*p_oriXPixels)) + k_IEOE_pi; // Determine the orientation image channel |