IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20670


Ignore:
Timestamp:
Nov 10, 2008, 4:44:44 PM (17 years ago)
Author:
bills
Message:

count the number of streaks on each image and print it out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksextern.c

    r20309 r20670  
    3535    Line line;
    3636    StreakPixels *pixels = psArrayAllocEmpty (1024);
     37    int streaksOnComponent = 0;
    3738    for (i = 0; i != streaks->size; ++i)
    3839    {
     
    4748        {
    4849            PixelsFromLine (pixels, &line);
     50            streaksOnComponent++;
    4951        }
    5052    }
     53    printf("%d streaks on this component\n", streaksOnComponent);
    5154    return pixels;
    5255}
Note: See TracChangeset for help on using the changeset viewer.