From 3914b1c1bb50d4f598e2ffe756f5f951dccba336 Mon Sep 17 00:00:00 2001 From: yuqiyuqitan Date: Thu, 11 Apr 2024 12:59:07 +0200 Subject: [PATCH] change extract_features to flip x and y for the segmentation methods --- src/spacec/tools/_segmentation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spacec/tools/_segmentation.py b/src/spacec/tools/_segmentation.py index 1f9fbbb..befeaa8 100644 --- a/src/spacec/tools/_segmentation.py +++ b/src/spacec/tools/_segmentation.py @@ -249,8 +249,8 @@ def extract_features( markers = mean_df.join(props_df) # rename column - markers.rename(columns={"centroid-0": "x"}, inplace=True) - markers.rename(columns={"centroid-1": "y"}, inplace=True) + markers.rename(columns={"centroid-0": "y"}, inplace=True) + markers.rename(columns={"centroid-1": "x"}, inplace=True) # Export to CSV markers.to_csv(output_file)