Skip to content

Commit

Permalink
Swapped x and y for centers of mass fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomateoslangerak committed Aug 30, 2023
1 parent d24face commit 0e56ba4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/microscopemetrics/samples/field_illumination.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ def _channel_max_intensity_properties(

return {
"nb_pixels": image_properties[0].area,
"center_of_mass_x": image_properties[0].centroid_weighted[0],
"center_of_mass_y": image_properties[0].centroid_weighted[1],
"center_of_mass_y": image_properties[0].centroid_weighted[0],
"center_of_mass_x": image_properties[0].centroid_weighted[1],
"max_intensity": max_intensity,
"max_intensity_pos_x": max_intensity_indexes[0],
"max_intensity_pos_y": max_intensity_indexes[1],
"max_intensity_pos_y": max_intensity_indexes[0],
"max_intensity_pos_x": max_intensity_indexes[1],
}


Expand Down

0 comments on commit 0e56ba4

Please sign in to comment.