aleator / CV

Haskell wrappers and utilities for OpenCV machine vision library
http://hackage.haskell.org/package/CV
BSD 3-Clause "New" or "Revised" License
51 stars 13 forks source link

fillConnectedComponents has odd behavior #39

Closed TomMD closed 10 years ago

TomMD commented 11 years ago

the fillConnectedComponents function has the effect of coloring (gray scale) the image's various connected components from 1-255 (looping if there are more than 255 CCs). This doesn't seem useful - perhaps the cvRealScalar(index) was supposed to be cvScalarAll(0)?

aleator commented 11 years ago

cvScalar(0) would leave you with completely black image. I think this is intentional, but it is written by amnipar so I'm not entirely sure.

What is the effect you're looking for?