CV-0.3.5.4: OpenCV based machine vision library

Safe HaskellSafe-Infered

CV.Fitting

Synopsis

Documentation

data Ellipse Source

Constructors

Ellipse 

Fields

center :: (Float, Float)
 
width :: Float
 
height :: Float
 
angle :: Float
 

Instances

fitEllipse :: Matrix (Float, Float) -> EllipseSource

Given a (1,n) or (n,1) matrix of points, calculate (in the least squares sense) the best ellipse around the points

fitLine2D :: Dist -> Double -> Double -> Double -> Matrix (Float, Float) -> ((Float, Float), (Float, Float))Source

Fit a line to set of points.

minAreaRect :: Matrix (Float, Float) -> C'CvBox2DSource

 Fit a minimum area rectangle over a set of points

boundingRect :: Matrix (Float, Float) -> C'CvRectSource

 Calculate the minimum axis-aligned bounding rectangle of given points.

boundingCircle :: (ELP a ~ Double, Point2D a) => Matrix (Float, Float) -> (a, Double)Source

Calculate the minimum enclosing circle of a point set.

convexHull :: Matrix (Float, Float) -> Matrix (Float, Float)Source

Calculcate the clockwise convex hull of a point set

convexityDefects :: Matrix (Int, Int) -> [(C'CvPoint, C'CvPoint, C'CvPoint, CFloat)]Source

Calculate convexity defects of a contour.