aoles / EBImage

:art: Image processing toolbox for R
71 stars 28 forks source link

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 2 months ago

arcolombo commented 2 months ago

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)