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

computeFeatures.moments is flipping the y-axis coordinate so that the raw image and the centroids do not match on the y #70

Open
arcolombo opened this issue Aug 30, 2024 · 0 comments

Comments

@arcolombo
Copy link

M_nuclei_mask.zip
Rplot
Rplot02

Hi, if i plot the mask the image matches as it should. if i call computeFeatures.moments for this image, the y-axis flips directions.

obj2 = computeFeatures.moment(masks)
xy2 = data.frame(X=obj2[,'m.cx'],Y=obj2[,'m.cy'])
pp2 = st_as_sf(xy2,coords=c('X','Y'))
plot(pp2)

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