Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STAPLE/Foot] fitQuadriTalus confuses right and left sides #113

Open
modenaxe opened this issue Mar 30, 2023 · 1 comment
Open

[STAPLE/Foot] fitQuadriTalus confuses right and left sides #113

modenaxe opened this issue Mar 30, 2023 · 1 comment

Comments

@modenaxe
Copy link
Owner

modenaxe commented Mar 30, 2023

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
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant