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

Some first points going in reverse - PCA shapes messed up afterward #232

Open
JehanLC opened this issue Sep 5, 2023 · 3 comments
Open

Comments

@JehanLC
Copy link

JehanLC commented Sep 5, 2023

Hello !

I started using Momocs just recently.
I am working with shapes, precisely the right half of individuals, so the left side is simply a straight line.

De facto it is much more easier to center, scale and select the direction of following analyses. All the first points are well-centered and on the axis.
However, after coo_slidedirection(my_coo, "left"), some of my first points are pointing toward a direction opposite from other first points. When doing my PCA some of the shapes present "wiggly" left sides, which is not "normal" when considering the initial shapes...

I don't know how to change the direction of these points. I think it is an easy and quick correction but I can't find anything on the internet... thanks for the help !

@vbonhomme
Copy link
Collaborator

vbonhomme commented Sep 5, 2023 via email

@JehanLC
Copy link
Author

JehanLC commented Sep 7, 2023

Hello,

Thank you for the help, so after trying to correct this problem it seems that the problem wasn't really a "flipped" shape.

To summarize, the base of the analysis was: importing jpg (right side shapes) into the coo object, followed by coo_center / coo_scale / coo_slidedirection(coo_object, direction = "left"). All of the starting points were well-centered, but a few ones (1-2% error rate) instead of "going up" for the analysis were "going down".

At the end it was finally corrected by multiple importing attempts (import_jpg), sometimes it randomly works ! 👍

Kind regards,
Jéhan

@vbonhomme
Copy link
Collaborator

vbonhomme commented Sep 7, 2023 via email

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

2 participants