
I am looking for an example of dealing with a 2dim mem region with O1
access time in pure haskell (pure as in whatever comes with haskell
platform).
On Tue, Aug 24, 2010 at 11:59 PM, Anthony Cowley
On Tue, Aug 24, 2010 at 11:02 AM, Raluca-Elena Podiuc
wrote: Hi, I am trying to build a mini framework for image processing but I can find any examples about that (bitmap processing ). Does anybody know were can I find some tutorials or samples about that ?
Noam Lewis's HOpenCV package on hackage http://hackage.haskell.org/package/HOpenCV is a great way to get started using OpenCV for image processing.
My own fork of this project http://github.com/acowley/HOpenCV adds static checking of color and pixel depth, more OpenCV functionality, and interoperation with Data.Vector.Storable. However, it should definitely be classified as experimental as I'm still exploring how I want things to work. I am using it for real-time video processing in an active research project, though, so it is getting regularly exercised. An example program included in the repository is,
import AI.CV.OpenCV.HighCV
main = toFile "closed.png" . erode 8 . dilate 8 =<< fromFileGray "input.png"
I've made some effort to provide reasonable haddock documentation, so I recommend building that (cabal haddock) and consulting it to find your way around.
As I mentioned, it is all still very rough, but feel free to give it a try if it seems to do what you need. If you're looking to start your own effort from scratch, I think Data.Vector.Storable is nice way to mix Haskell and C.
Anthony _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Regards, Kashyap