mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
add some functions and tests
applyColorMap approxPolyN arrowedLine blendLinear boxPoints clipLine convertMaps createHanningWindow divSpectrums drawMarker findContoursLinkRuns fitEllipseAMS fitEllipseDirect getFontScaleFromHeight getRectSubPix HuMoments intersectConvexConvex invertAffineTransform minEnclosingTriangle preCornerDetect rotatedRectangleIntersection sqrBoxFilter spatialGradient stackBlur
This commit is contained in:
@@ -245,5 +245,8 @@ QUnit.test('test_rotated_rect', function(assert) {
|
||||
|
||||
assert.equal(points[0].x, cv.RotatedRect.boundingRect2f(rect).x);
|
||||
assert.equal(points[1].y, cv.RotatedRect.boundingRect2f(rect).y);
|
||||
|
||||
let points1 = cv.boxPoints(rect);
|
||||
assert.deepEqual(points, points1);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user