DeadReckoning_7x7.cpp File Reference

#include <stdlib.h>
#include "DeadReckoning_7x7.h"

Defines

#define _check(X, Y, Delta)

Detailed Description

Implementation of DeadReckoning_7x7 distance transform class which, given and input binary image, calculates the corresponding distance transform.

Author:
George J. Grevera, Ph.D., ggrevera@sju.edu
Copyright (C) 2002, George J. Grevera

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or from http://www.gnu.org/licenses/gpl.txt.

This General Public License does not permit incorporating this code into proprietary programs. (So a hypothetical company such as GH (Generally Hectic) should NOT incorporate this code into their proprietary programs.)


Define Documentation

#define _check X,
Y,
Delta   ) 
 

Value:

i1=sub((X),(Y));                                  \
            if (d[i1]+(Delta) < d[i2]) {                      \
                this->p[i2] = this->p[i1];                    \
                const double deltaX = (p[i1].x - x);          \
                const double deltaY = (p[i1].y - y);          \
                d[i2] = sqrt(deltaX*deltaX + deltaY*deltaY);  \
            }


Generated on Thu Jan 12 10:28:44 2006 by  doxygen 1.4.5