Skip to content

Commit

Permalink
match skimage angle results to opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Dec 30, 2022
1 parent 69f619d commit 5e6b597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stcal/jump/jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ def find_ellipses(dqplane, bitmask, min_area):
ellipses = [
(
numpy.mean(rectangle[[0, 2], :], axis=0),
numpy.hypot(*numpy.diff(rectangle[[-2, 0, 1], :], axis=0)),
numpy.degrees(numpy.arctan2(*numpy.flip(numpy.diff(rectangle[[0, 1], :], axis=0)[0])))
numpy.hypot(*numpy.diff(rectangle[[0, 1, 2], :], axis=0)),
numpy.degrees(numpy.arctan2(*numpy.flip(numpy.diff(rectangle[[3, 0], :], axis=0)[0])))
)
for rectangle in rectangles
]
Expand Down

0 comments on commit 5e6b597

Please sign in to comment.