diff --git a/ShoulderCase/@Humerus/getSlicerLandmarks.m b/ShoulderCase/@Humerus/getSlicerLandmarks.m index e076fab..64396d6 100644 --- a/ShoulderCase/@Humerus/getSlicerLandmarks.m +++ b/ShoulderCase/@Humerus/getSlicerLandmarks.m @@ -1,10 +1,15 @@ function output = getSlicerLandmarks(obj, filename) loadedLandmarks = jsondecode(fileread(filename)).markups.controlPoints; + validWordsInLabels = ["subscapularis", "supraspinatus", "infraspinatus",... + "teres", "minor", "intratubercular"]; landmarks = []; for i = 1:length(loadedLandmarks) - landmarks.(loadedLandmarks(i).label) = loadedLandmarks(i).position; + correctedLabel = correctSpelling(... + tokenizedDocument(replace(loadedLandmarks(i).label, "_", " ")),... + "KnownWords", validWordsInLabels); + landmarks.(join(correctedLabel.string, "_")) = loadedLandmarks(i).position; end output = landmarks; end \ No newline at end of file