Skip to content

Commit

Permalink
change extract_features to flip x and y for the segmentation methods
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqiyuqitan committed Apr 11, 2024
1 parent ec47f3b commit 3914b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spacec/tools/_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3914b1c

Please sign in to comment.