Hi,
i'm currently working on a knn classificator and want to save the classifed probe as an ascii file (so i can edit it manually for missclassified tfingertip).
This is my struct:
Code:
typedef struct{
int x;
int y;
int c;
} tfingertip;
i want to write each tfingertip as one row seperated by ;
so it looks like:
15;30;1;
44;26;3;
then i want to read it out rowwise so i can math the distance to each list element (putting the values in the list isnt the problem, the problem is the file writing/reading)
i would also like to name the filename by timestamp so while automated learning (if turned on) i can select which file to take if the knn begin to fail with misclassified tfingertips.
edit: i would also like to sort the rows by its c (fingerclass) so its easier to read for manual editing.
Thanks in advance!
~Jan