segmentation

hello
i have project to make track points on face
i make tracking througth segmentation
using simulink demo
i want to help me in writting documentation
i want to write the algorithm that is used in simulink demo color segmentation
can any one help me to write this algorithm
pleaaaaaaaaaaaase
wait you
thanks