File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ class LPNormalizeLayerImpl : public LPNormalizeLayer
53
53
norm = cv::norm (*inputs[0 ], NORM_L2);
54
54
else
55
55
{
56
- pow (abs (*inputs[0 ]), pnorm, internals[0 ]);
57
- norm = pow (sum (internals[0 ])[0 ], 1 .0f / pnorm);
56
+ cv:: pow (abs (*inputs[0 ]), pnorm, internals[0 ]);
57
+ norm = pow (( float ) sum (internals[0 ])[0 ], 1 .0f / pnorm);
58
58
}
59
59
multiply (*inputs[0 ], 1 .0f / (norm + epsilon), outputs[0 ]);
60
60
}
Original file line number Diff line number Diff line change @@ -593,8 +593,8 @@ cv::RotatedRect cv::fitEllipseAMS( InputArray _points )
593
593
594
594
x0 = p1/l3 + c.x ;
595
595
y0 = p2/l3 + c.y ;
596
- a = sqrt (2 )*sqrt ((u1 - 4.0 *u2)/((l1 - l2)*l3));
597
- b = sqrt (2 )*sqrt (-1.0 *((u1 - 4.0 *u2)/((l1 + l2)*l3)));
596
+ a = std:: sqrt (2 . )*sqrt ((u1 - 4.0 *u2)/((l1 - l2)*l3));
597
+ b = std:: sqrt (2 . )*sqrt (-1.0 *((u1 - 4.0 *u2)/((l1 + l2)*l3)));
598
598
if (pVec (1 ) == 0 ) {
599
599
if (pVec (0 ) < pVec (2 ) ) {
600
600
theta = 0 ;
@@ -746,8 +746,8 @@ cv::RotatedRect cv::fitEllipseDirect( InputArray _points )
746
746
747
747
x0 = p1/l3 + c.x ;
748
748
y0 = p2/l3 + c.y ;
749
- a = sqrt (2 )*sqrt ((u1 - 4.0 *u2)/((l1 - l2)*l3));
750
- b = sqrt (2 )*sqrt (-1.0 *((u1 - 4.0 *u2)/((l1 + l2)*l3)));
749
+ a = sqrt (2 . )*sqrt ((u1 - 4.0 *u2)/((l1 - l2)*l3));
750
+ b = sqrt (2 . )*sqrt (-1.0 *((u1 - 4.0 *u2)/((l1 + l2)*l3)));
751
751
if (pVec (1 ) == 0 ) {
752
752
if (pVec (0 ) < pVec (2 ) ) {
753
753
theta = 0 ;
You can’t perform that action at this time.
0 commit comments