CV-0.3.7: OpenCV based machine vision library

Safe HaskellSafe-Inferred

Utils.GeometryClass

Synopsis

Documentation

class Point2D a whereSource

Associated Types

type ELP a :: *Source

Methods

pt :: a -> (ELP a, ELP a)Source

toPt :: (ELP a, ELP a) -> aSource

ipt :: (Point2D a, RealFrac (ELP a)) => a -> (Int, Int)Source

Extract integer coordinates of a point

convertPt :: (Point2D a, Point2D b, ELP a ~ ELP b) => a -> bSource

class BoundingBox a whereSource

Associated Types

type ELBB a :: *Source

Methods

bounds :: a -> Rectangle (ELBB a)Source

class FromBounds a whereSource

Associated Types

type ELFB a :: *Source

Methods

fromBounds :: Rectangle (ELFB a) -> aSource

class Line2D a whereSource

Associated Types

type ELL a :: *Source

Methods

offsetAngle :: a -> (ELL a, Double)Source

class LineSegment a whereSource

Associated Types

type ELS a :: *Source

Methods

startEnd :: a -> ((ELS a, ELS a), (ELS a, ELS a))Source

class Sized a whereSource

Typeclass for elements with a size, such as images and matrices.

Associated Types

type Size a :: *Source

Methods

getSize :: a -> Size aSource

biggerThan :: (Sized a, Sized b, Size a ~ (Int, Int), Size b ~ Size a) => a -> b -> BoolSource