SCIInstitute / ShapeWorks

ShapeWorks
http://sciinstitute.github.io/ShapeWorks/
Other
100 stars 32 forks source link

Importing Landmarks to ShapeWorks Studio #2207

Open amygutierrez opened 4 months ago

amygutierrez commented 4 months ago

Is there a way to import landmarks instead of manually placing landmarks? I am using ShapeWorks Studio and importing my data and also manually applying landmarks. Is there a way to possibly import landmark points?

If there is a way to import landmarks, what format is accepted (JSON file, etc.)? MicrosoftTeams-image

akenmorris commented 4 months ago

The landmark positions are stored as particle files, a simple ASCII format.

X1 Y1 Z1
X2 Y2 Z2
X3 Y3 Z3
....

The definitions (which are not required and will be autogenerated) are in the landmark table of the spreadsheet/json:

image
amygutierrez commented 4 months ago

So I can just import a particle file in ASCII format? Where do I import these this landmark particle file when using ShapeWorks Studio?

akenmorris commented 4 months ago

So it doesn't have a direct import functionality. You can supply the files by adding them to the xlsx spreadsheet or json file:

image

You can double check the structure by creating a few manual landmarks and saving the project. It will create the landmarks files and you can replace them.

amygutierrez commented 4 months ago

Thank you for your response! So once I create the spreadsheet with the Name, Notes, Shape_1, and Landmarks_file_1 columns, where do I then import/apply that spreadsheet to?

akenmorris commented 4 months ago

ShapeWorksStudio will open the spreadsheet file directly, as a project.