imageprocessing/guidedVectorize.c
double calculateDistance(POINT_T * p1, POINT_T * p2)
{
  double dist =  (p1->x - p2->x)*(p1->x - p2->x) + (p1->y - p2->y)*(p1->y - p2->y);
  return sqrt(dist);
}
/* calculate the Euclidean distance between two points (in pixels).
 * @param p1    First point
 * @param p2    Second point
 * @return distance
 */
calculate the Euclidean distance between two points (in pixels).
@param p1    First point
@param p2    Second point
@return distance
calculate the Euclidean distance between two points ( in pixels ) . @param p1 First point @param p2 Second point @return distance
double calculateDistance(POINT_T * p1, POINT_T * p2)
{
  double dist =  (p1->x - p2->x)*(p1->x - p2->x) + (p1->y - p2->y)*(p1->y - p2->y);
  return sqrt(dist);
}
double calculateDistance ( POINT_T * p1 , POINT_T * p2 ) { double dist = ( p1 -> x - p2 -> x ) * ( p1 -> x - p2 -> x ) + ( p1 -> y - p2 -> y ) * ( p1 -> y - p2 -> y ) ; return sqrt ( dist ) ; }
calculate the Euclidean distance between two points (in pixels).
calculate the Euclidean distance between two points ( in pixels ) .