CV-0.3.7: OpenCV based machine vision library

Safe HaskellNone

CV.Conversions

Contents

Description

This module provides slow but functional means for exporting images from and to CArrays, which can easily be passed into foreign functions.

Synopsis

Documentation

copyCArrayToImage :: CArray (Int, Int) Double -> Image GrayScale D32Source

Copy the contents of a CArray into CV.Image type.

copy8UCArrayToImage :: CArray (Int, Int) Word8 -> Image GrayScale D8Source

Copy the contents of a CArray into CV.Image type.

copyImageToCArray :: Image GrayScale D32 -> CArray (Int, Int) DoubleSource

Copy the contents of a CV.Image into a CArray.

copyFCArrayToImage :: CArray (Int, Int) Float -> Image GrayScale D32Source

Copy CArray of floats to image

copyImageToFCArray :: Image GrayScale D32 -> CArray (Int, Int) FloatSource

Copy D32 grayscale image to CArray

Complex arrays

copyComplexCArrayToImage :: CArray (Int, Int) (Complex Double) -> Image GrayScale D32Source

Copy the real part of an array to image

copyImageToComplexCArray :: Image GrayScale D32 -> CArray (Int, Int) (Complex Double)Source

Copy image as a real part of a complex CArray

Copying

copyImageToExistingCArray :: Image t t1 -> CArray i Double -> IO ()Source

Copy the contents of CV.Image into a pre-existing CArray.

Acquiring images from pointers