CV-0.3.6.0: OpenCV based machine vision library

Safe HaskellSafe-Infered

CV.Histogram

Synopsis

Documentation

newtype HistogramData a Source

Constructors

HGD [(a, a)] 

backProjectHistogram :: [Image GrayScale D8] -> Histogram -> Image GrayScale D8Source

Given a set of images, such as the color channels of color image, and a histogram with corresponding number of channels, replace the pixels of the image with the likelihoods from the histogram

histogram :: [(Image GrayScale D8, Int)] -> Bool -> Maybe (Image GrayScale D8) -> HistogramSource

 Calculate an opencv histogram object from set of images, each with it's own number of bins.

cmpUnion :: (Num a, Ord a) => [a] -> [a] -> aSource

cmpIntersect :: (Num a, Ord a) => [a] -> [a] -> aSource

cmpEuclidian :: Num a => [a] -> [a] -> aSource

cmpAbs :: Num a => [a] -> [a] -> aSource

chiSqr :: (Fractional a, Ord a) => [a] -> [a] -> aSource

liftBins :: ([b] -> [a]) -> HistogramData b -> [(a, b)]Source

liftValues :: ([a] -> [b]) -> HistogramData a -> [(a, b)]Source

tcumulate :: Num a => [a] -> [a]Source

weightedHistogram :: (Fractional b, Real a1, Real a) => Image c d -> Image c1 d1 -> a -> a1 -> Int -> [b]Source