eegkno / ustoolbox

Analysis of the spine from ultrasound images
MIT License
0 stars 0 forks source link

Clean coordinates files #21

Closed eegkno closed 5 years ago

eegkno commented 5 years ago

3D Slicer generates a file F.fcsv that contains the coordinates from the landmarks of the 3D reconstruction. To analyze the data, it has to be cleaned.

eegkno commented 5 years ago

A macro to substitute the unnecessary data was created in Vim with:

%s/vtkMRMLMarkupsFiducialNode_\d\d,//g %s/,\d,\d,\d,\d,\d,\d,\d,..\d\d,,//g

Also, the columns were reorganized by %s/\v^([^,]),([^,]),([^,]*)$/\3,\2,\1