#!/bin/csh
# This shell creates data for the clustering program 
# by allowing a user to interactively select regions
# of an image. It requires matlab.
# The last segmentation step requires that you get the
# SMAP segmentation software package.

# Run Matlab to get training vectors for each class
#matlab < Train.m
#mv img14.1.pgm img14.1
#mv img14.2.pgm img14.2
#mv img14.3.pgm img14.3

# Run the clust program to estimate mixture distribution for each class
../../cluster-3.6.4/clust 20 info_file params

#Run SMAP algorithm to segment color image contained
../smap -i img14 -p params -o img14.seg -x 768 -y 512 -Smap
