CV-0.3.7: OpenCV based machine vision library

Safe HaskellNone

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 t2, Integral t3, RealFrac t, RealFrac t1, Sized a, ~ * (Size a) (t2, t3)) => (t2, t3) -> (t, t1) -> a -> [(t2, t3)]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

discardAroundEdges :: (Num t, Num t1, Ord t, Ord t1) => (t, t1) -> (t, t1) -> [(t, t1)] -> [(t, t1)]Source

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

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

randomPatches :: PrimMonad m => (Int, Int) -> Int -> Image c d -> Gen (PrimState m) -> m [Image c d]Source