CV-0.3.5.3: OpenCV based machine vision library

Safe HaskellSafe-Infered

CV.Histogram

Synopsis

Documentation

newtype HistogramData a

Constructors

HGD [(a, a)] 

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

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) -> Histogram

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

values :: HistogramData b -> [b]

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

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

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

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

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

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

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

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

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