working color filter mask in c++ for segmenting swimmers