April 7th, 2003, 08:30 PM
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!
April 7th, 2003, 10:48 PM
something like this:
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> !
April 8th, 2003, 05:04 AM
However, what I want is just a algorithms of image processing.
Some kind of image recognization.
Thank u all the same!