CV-0.3.5.4: OpenCV based machine vision library

Safe HaskellSafe-Infered

CV.Sampling

Documentation

allPatches :: (Int, Int) -> Image c d -> [Image c d]Source

allButLast :: [a] -> [a]Source

getTiles :: (Int, Int) -> Image c d -> [Image c d]Source

getTilesC :: (Int, Int) -> Image c d -> [((Int, Int), Image c d)]Source

getOverlappedTileCoords :: (Integral t1, Integral t, RealFrac a2, RealFrac a1, Sized a, ~ * (Size a) (t, t1)) => (t, t1) -> (a1, a2) -> a -> [(t, t1)]Source

getOverlappedTilesC :: (Int, Int) -> (CDouble, CDouble) -> Image c d -> [((Int, Int), Image c d)]Source

both :: (t -> t1) -> (t, t) -> (t1, t1)Source

getPatches :: (Int, Int) -> [(Int, Int)] -> Image c d -> [Image c d]Source

getCenteredPatches :: (Int, Int) -> [(Int, Int)] -> Image c d -> [Image c d]Source

select :: Int -> [a] -> IO [a]Source

discardAroundEdges :: (Num a1, Num a, Ord a1, Ord a) => (a, a1) -> (a, a1) -> [(a, a1)] -> [(a, a1)]Source

getCoordsFromMarks :: (Fractional (P a), Ord (P a), GetPixel a, Sized a, ~ * (Size a) (Int, Int)) => a -> [(Int, Int)]Source

getMarkedPatches :: (Fractional (P a), Ord (P a), GetPixel a, Sized a, ~ * (Size a) (Int, Int)) => (Int, Int) -> Image c d -> a -> [Image c d]Source