CV-0.3.5.3: OpenCV based machine vision library

Safe HaskellSafe-Infered

CV.Filters

Description

This module is a collection of various image filters

Synopsis

Documentation

class HasMedianFiltering a where

Methods

median :: (Int, Int) -> a -> a

getCentralMoment :: CInt -> (CInt, CInt) -> Image c d -> Image channels depth

getAbsCentralMoment :: CInt -> (CInt, CInt) -> Image c d -> Image channels depth

getMoment :: CInt -> (CInt, CInt) -> Image c d -> Image channels depth

selectiveAvg :: (Int, Int) -> Double -> Image GrayScale D32 -> Image GrayScale D32

A selective average filter is an edge preserving noise reduction filter. It is a standard gaussian filter which ignores pixel values that are more than a given threshold away from the filtered pixel value.

convolve2D :: (Point2D anchor, ELP anchor ~ Int) => Matrix D32 -> anchor -> Image GrayScale D32 -> Image GrayScale D32

convolve2DI :: (CInt, CInt) -> Image c1 d1 -> Image c d -> Image channels depth

haar :: IntegralImage -> (Int, Int, Int, Int) -> Image GrayScale D32

Filter the image with box shaped averaging mask.

haarAt :: IntegralImage -> (Int, Int, Int, Int) -> Double

Get an average of a given region.

data IntegralImage

 A type for storing integral images. Integral image stores for every pixel the sum of pixels above and left of it. Such images are used for significantly accelerating the calculation of area averages.

integralImage :: Image GrayScale D32 -> IntegralImage

 Calculate the integral image from the given image.

verticalAverage :: Image GrayScale D32 -> Image GrayScale D32

Replace pixel values by the average of the row.