# demoCluster

## PURPOSE

Clustering demo.

## SYNOPSIS

This is a script file.

## DESCRIPTION

     Clustering demo.

     Used to test different clustering algorithms on 2D and 3D mixture of
     gaussian data. Alter demo by edititing this file.

     USAGE
      demoCluster

     INPUTS

     OUTPUTS

     EXAMPLE
      demoCluster

     See also KMEANS2, MEANSHIFT

     Piotr's Image&Video Toolbox      Version 2.0
     Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- demoGenData Generate data drawn form a mixture of Gaussians.
- distMatrixShow Useful visualization of a distance matrix of clustered points.
- kmeans2 Fast version of kmeans clustering.
- meanShift meanShift clustering algorithm.
- pdist2 Calculates the distance between sets of vectors.
- visualizeData Project high dim. data unto principal components (PCA) for visualization.
- im Function for displaying grayscale images.

This function is called by: