static List GetPointsWithNNeighbors(int n, BinaryMap * image, List minutiae) { for ( int i=0; i < image->width; ++i ) { for ( int j=0; j < image->height; ++j ) { if ( CountNeighbors(i, j, image) == n && BinaryMap_GetBit(image, i, j) == 1) { Minutia * minutia = calloc(1, sizeof(*minutia)); minutia->minutiaType = GetMinutiaType(n); minutia->position = (Point) { .x = i, .y = j }; List_AddData(&minutiae, minutia); minutiaeLocations.data[i][j] = minutia->minutiaType; } } }
void SkeletonBuilder_AddMinutia(SkeletonBuilder *me, Minutia *minutia) { List_AddData(&me->allMinutiae, minutia); }