msk-STAPLE icon indicating copy to clipboard operation
msk-STAPLE copied to clipboard

[STAPLE/Foot] fitQuadriTalus confuses right and left sides

Open modenaxe opened this issue 1 year ago • 1 comments

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;

image

modenaxe avatar Mar 30 '23 23:03 modenaxe

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.

modenaxe avatar Apr 11 '23 05:04 modenaxe