ep 3: Track the Face
% With the skin tone selected as the feature to track, you can now use the
% |vision.HistogramBasedTracker| for tracking. The histogram based tracker
% uses the CAMShift algorithm, which provides the capability to track an
% object using a histogram of pixel values. In this example, the Hue
% channel pixels are extracted from the nose region of the detected face.
% These pixels are used to initialize the histogram for the tracker. The
% example tracks the object over successive video frames using this
% histogram.
% Detect the nose within the face region. The nose provides a more accurate
% measure of the skin tone because it does not contain any background
% pixels.