msk-STAPLE
msk-STAPLE copied to clipboard
[STAPLE/Foot] fitQuadriTalus confuses right and left sides
fitQuadriTalus didn’t correctly identify the medial/lateral direction and inferior/superior. An hardcoded fix proposed by Erik Meilak:
In STAPLE_talus.m:
[AuxCSInfo.Y0,AuxCSInfo.Z0] = fitQuadriTalus(talusTri, V_all, debug_plots); %for LEFT FOOT
AuxCSInfo.Y0=-AuxCSInfo.Y0;
[AuxCSInfo.Y0,AuxCSInfo.Z0] = fitQuadriTalus(talusTri, V_all, debug_plots); %for RIGHT FOOT
AuxCSInfo.Z0=-AuxCSInfo.Z0;
Using the updated fitQuadriTalus.m code a different error is thrown:
Array indices must be positive integers or logical values.
Error in fitQuadriTalus (line 114)
Edge_sup = quadriV(I_V_sup:I_V_sup+1);
Which indicates that the index of the start vertex of the quadrilateral I_V_sup is never found.