CV-0.3.7: OpenCV based machine vision library

Safe HaskellNone




 This module is a collection of simple edge detectors.


Common edge detectors

sobelOp :: (Int, Int) -> SobelAperture -> ImageOperation GrayScale D32Source

Perform Sobel filtering on image. First argument gives order of horizontal and vertical derivative estimates and second one is the aperture. This function can also calculate Scharr filter with aperture specification of sScharr

laplaceOp :: LaplacianAperture -> ImageOperation GrayScale D32Source

Perform laplacian filtering of given aperture to image

canny :: Int -> Int -> Int -> Image GrayScale D8 -> Image GrayScale D8Source

Perform canny thresholding using two threshold values and given aperture Works only on 8-bit images

Various aperture sizes

 For added safety we define the possible apertures as constants, since the filters accept only specific mask sizes.

data SobelAperture Source

Aperture sizes for sobel operator

sScharr :: SobelApertureSource

 Use Scharr mask instead