friday-0.2.1.0: A functional image processing library for Haskell.

Safe HaskellSafe-Inferred
LanguageHaskell2010

Vision.Primitive

Synopsis

Documentation

type Point = DIM2 Source

Coordinates inside the image.

Can be constructed using ix2. The first parameter is the y coordinate while the second is the x coordinate (i.e. ix2 y x). Image origin (ix2 0 0) is located in the upper left corner.

type Size = DIM2 Source

Size of an object.

Can be constructed using ix2. The first parameter is the height while the second is the width (i.e. ix2 h w).

data Rect Source

Constructors

Rect 

Fields

rX :: !Int
 
rY :: !Int
 
rWidth :: !Int
 
rHeight :: !Int
 

Instances

data RPoint Source

Rational coordinates used for interpolations.

Constructors

RPoint 

Fields

rpX :: !RatioInt
 
rpY :: !RatioInt