imageprocessing/debugFunctions.c
void printList(POINT_T* pHead,int featureId,int pointCount)
{
   char buffer[16];
   POINT_T * pCurrent = pHead;
   printf("Feature %d has %d points\n", featureId,pointCount);
   while (pCurrent != NULL)
     {
     printf("(%3d, %3d) - area %lf\n",pCurrent->x,pCurrent->y,pCurrent->triangleArea);
     pCurrent = pCurrent->next;
     }
   printf("Hit return to continue: ");
   fgets(buffer,sizeof(buffer),stdin);
}
/* Debugging function prints the coordinates in order */
Debugging function prints the coordinates in order
Debugging function prints the coordinates in order
void printList(POINT_T* pHead,int featureId,int pointCount)
{
   char buffer[16];
   POINT_T * pCurrent = pHead;
   printf("Feature %d has %d points\n", featureId,pointCount);
   while (pCurrent != NULL)
     {
     printf("(%3d, %3d) - area %lf\n",pCurrent->x,pCurrent->y,pCurrent->triangleArea);
     pCurrent = pCurrent->next;
     }
   printf("Hit return to continue: ");
   fgets(buffer,sizeof(buffer),stdin);
}
void printList ( POINT_T * pHead , int featureId , int pointCount ) { char buffer [ 16 ] ; POINT_T * pCurrent = pHead ; printf ( " \n " , featureId , pointCount ) ; while ( pCurrent != NULL ) { printf ( " \n " , pCurrent -> x , pCurrent -> y , pCurrent -> triangleArea ) ; pCurrent = pCurrent -> next ; } printf ( " " ) ; fgets ( buffer , sizeof ( buffer ) , stdin ) ; }
Debugging function prints the coordinates in order
Debugging function prints the coordinates in order