Introduction - If you have any usage issues, please Google them yourself
This MATLAB code lets you experiment with color segmentation in an image. Moreover an example is given where a specific color (e.g. Blue) can be removed a video stream giving an illusion of a magic cloak.