#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    2
    Rep Power
    0

    Question Can some one tell me the algorithm of Token based extractio of straight lines?


    And where can I find the related topics?
    Thanks a lot!
  2. #2
  3. not a fan of fascism (n00b)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Feb 2003
    Location
    ct
    Posts
    2,756
    Rep Power
    95
    something like this:

    char *tokenPtr
    char string[ ]

    tokenPtr = strtok(string, " ");
    while(tokenPtr != NULL)
    tokenPtr = strtok(NULL, " ");

    -strtok() will begin to parse the string on the first call to it. the delimiter character is the second argument, which in this case is a space. after the first call, u set up a while loop as above. now if u want to be able to store these tokens, then that will require some additional code, good luck!
    -dont forget to #include<string.h> !
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    2
    Rep Power
    0
    Thank you!
    However, what I want is just a algorithms of image processing.
    Some kind of image recognization.

    Thank u all the same!

IMN logo majestic logo threadwatch logo seochat tools logo