Image processing with cuda

Hello,

I am attempting to port a matlab algorithm to C++ and accelerate it with CUDA. One of the matlab functions I have run into out of the Image processing toolbox is “imfill” which is described here:

Do other tools exist that do this, maybe even CUDA based? Or am I stuck having to link in the matlab libraries or having to rewrite it (and I have no idea where to start)

Thanks

Derek

you can use the openCV library (open source image processing lib)

  1. inverse your image
  2. label it
  3. select one pixel from each label except the BG (the BG is usually the biggest label touching the image borders)
  4. apply cvfloodfill at each of the pixels you collected.

voila!