imageprocessing/debugFunctions.c
void printFeatureArcs(FEATURE_T* pFeature, int which)
{
  printf("Feature %d which has %d points and average slope %lf\n", which,pFeature->pointCount,pFeature->avgSlope);
  printf("   Region X,Y: %d %d  (%d,%d) to (%d,%d)\n", pFeature->regionX,pFeature->regionY,
    pFeature->minX,pFeature->minY,pFeature->maxX,pFeature->maxY);
  
//  ARC_T * pArc = pFeature->firstArc;
//  ARC_T * pNextArc = NULL;
//  int arcnum = 1;
//  while (pArc != NULL)
//    {
//    pNextArc = pArc->next;
//    //printf("    Arc from (%d,%d) to (%d,%d) -- slope is %lf\n",
//    //	   pArc->p1->x,pArc->p1->y,pArc->p2->x,pArc->p2->y,pArc->slope);
//    if (pNextArc != NULL)
//       {
//       printf("     Angle between arc #%d and arc #%d is %lf\n", arcnum,arcnum+1,computeArcAngle(pArc,pNextArc));
//       }
//    pArc = pArc->next;
//    arcnum++;
//    } 

}
/* Print the angles between all arcs for a feature 'pFeature'.
 * 'which' is the array index, which allows us to identify which feature */
Print the angles between all arcs for a feature 'pFeature'.
'which' is the array index, which allows us to identify which feature
Print the angles between all arcs for a feature ' pFeature ' . ' which ' is the array index which allows us to identify which feature
void printFeatureArcs(FEATURE_T* pFeature, int which)
{
  printf("Feature %d which has %d points and average slope %lf\n", which,pFeature->pointCount,pFeature->avgSlope);
  printf("   Region X,Y: %d %d  (%d,%d) to (%d,%d)\n", pFeature->regionX,pFeature->regionY,
    pFeature->minX,pFeature->minY,pFeature->maxX,pFeature->maxY);
}
void printFeatureArcs ( FEATURE_T * pFeature , int which ) { printf ( " \n " , which , pFeature -> pointCount , pFeature -> avgSlope ) ; printf ( " \n " , pFeature -> regionX , pFeature -> regionY , pFeature -> minX , pFeature -> minY , pFeature -> maxX , pFeature -> maxY ) ; }
Print the angles between all arcs for a feature 'pFeature'.
Print the angles between all arcs for a feature ' pFeature ' .
//  ARC_T * pArc = pFeature->firstArc; //  ARC_T * pNextArc = NULL; //  int arcnum = 1; //  while (pArc != NULL) //    { //    pNextArc = pArc->next; //    //printf("    Arc from (%d,%d) to (%d,%d) -- slope is %lf\n", //    //	   pArc->p1->x,pArc->p1->y,pArc->p2->x,pArc->p2->y,pArc->slope); //    if (pNextArc != NULL) //       { //       printf("     Angle between arc #%d and arc #%d is %lf\n", arcnum,arcnum+1,computeArcAngle(pArc,pNextArc)); //       } //    pArc = pArc->next; //    arcnum++; //    } 