Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chroma key removal algorithm/library [closed]

I am working on a recorder software for desktop PC that works on Windows XP/7. I would like to be able to remove backgrounds from the recorded video by means of chroma keying.

Example
(source: kudlian.net)

Any info of such algorithms, complete libraries, open source projects? I need it to be accessible from c#, and preferably something that will run on GPUs (CUDA, pixel shaders, ...)

My video is accessible in RGB24 and YUY2 formats, so it would be great if such library will be able to handle those formats.

like image 885
Daniel Mošmondor Avatar asked Nov 01 '10 11:11

Daniel Mošmondor


1 Answers

A good starting point is to study the solution provided on this blog. The color separation approach described there is a good baseline algorithm. However, relying on color alone may be sub-optimal is some situations (high subject movement, clothing color conflicts etc.). If you want something very robust, you will need to start looking at contour segmentation techniques (a.k.a active contours).

like image 98
nav Avatar answered Sep 23 '22 17:09

nav