File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
12
12
FeretDiameter ,
13
13
} from '../maskAnalysis' ;
14
14
import { getAngle } from '../maskAnalysis/utils/getAngle' ;
15
+ import { toDegrees } from '../utils/geometry/angles' ;
15
16
import { Point } from '../utils/geometry/points' ;
16
17
17
18
import { RoiMap } from './RoiMapManager' ;
@@ -743,12 +744,12 @@ function getEllipse(roi: Roi, scale: number): Ellipse {
743
744
majorAxis : {
744
745
points : [ majorAxisPoint1 , majorAxisPoint2 ] ,
745
746
length : majorLength ,
746
- angle : getAngle ( majorAxisPoint1 , majorAxisPoint2 ) ,
747
+ angle : toDegrees ( getAngle ( majorAxisPoint1 , majorAxisPoint2 ) ) ,
747
748
} ,
748
749
minorAxis : {
749
750
points : [ minorAxisPoint1 , minorAxisPoint1 ] ,
750
751
length : minorLength ,
751
- angle : getAngle ( minorAxisPoint1 , minorAxisPoint2 ) ,
752
+ angle : toDegrees ( getAngle ( minorAxisPoint1 , minorAxisPoint2 ) ) ,
752
753
} ,
753
754
surface : ellipseSurface ,
754
755
} ;
You can’t perform that action at this time.
0 commit comments