friday-0.2.3.2: A functional image processing library for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Vision.Image.Conversion

Synopsis

Documentation

class Convertible a b where #

A typeclass that represents something that can be converted. A Convertible a b instance represents an a that can be converted to a b.

Methods

safeConvert :: a -> ConvertResult b #

Convert a to b, returning Right on success and Left on error. For a simpler interface, see convert.

Instances

Instances details
Convertible GreyPixel GreyPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible GreyPixel HSVPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible GreyPixel RGBPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible GreyPixel RGBAPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible HSVPixel GreyPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible HSVPixel HSVPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible HSVPixel RGBPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible HSVPixel RGBAPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBPixel GreyPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBPixel HSVPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBPixel RGBPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBPixel RGBAPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBAPixel GreyPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBAPixel HSVPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBAPixel RGBPixel Source # 
Instance details

Defined in Vision.Image.Conversion

Convertible RGBAPixel RGBAPixel Source # 
Instance details

Defined in Vision.Image.Conversion

(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Delayed p1) (Delayed p2) Source # 
Instance details

Defined in Vision.Image.Type

(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Delayed p1) (Manifest p2) Source # 
Instance details

Defined in Vision.Image.Type

(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Manifest p1) (Delayed p2) Source # 
Instance details

Defined in Vision.Image.Type

(Storable p1, Storable p2, Convertible p1 p2) => Convertible (Manifest p1) (Manifest p2) Source # 
Instance details

Defined in Vision.Image.Type

convert :: Convertible a b => a -> b #

Convert from one type of data to another. Raises an exception if there is an error with the conversion. For a function that does not raise an exception in that case, see safeConvert.

Orphan instances

Convertible GreyPixel GreyPixel Source # 
Instance details

Convertible GreyPixel HSVPixel Source # 
Instance details

Convertible GreyPixel RGBPixel Source # 
Instance details

Convertible GreyPixel RGBAPixel Source # 
Instance details

Convertible HSVPixel GreyPixel Source # 
Instance details

Convertible HSVPixel HSVPixel Source # 
Instance details

Convertible HSVPixel RGBPixel Source # 
Instance details

Convertible HSVPixel RGBAPixel Source # 
Instance details

Convertible RGBPixel GreyPixel Source # 
Instance details

Convertible RGBPixel HSVPixel Source # 
Instance details

Convertible RGBPixel RGBPixel Source # 
Instance details

Convertible RGBPixel RGBAPixel Source # 
Instance details

Convertible RGBAPixel GreyPixel Source # 
Instance details

Convertible RGBAPixel HSVPixel Source # 
Instance details

Convertible RGBAPixel RGBPixel Source # 
Instance details

Convertible RGBAPixel RGBAPixel Source # 
Instance details