#!/bin/csh
# RUN this shell as an example of how to use the smap program
# Type "smap -h" for a listing of smap inputs and usage
# This program uses class parameters which have been estimated
# using the clust program in the directory ../cluster

# WARNING: The segmented images will appear
# black until you change the color map of the
# pgm file.

matlab < mk_data.m
mv input/image.1.pgm input/image.1
mv input/image.2.pgm input/image.2

../../cluster-3.6.4/clust 20 info_file params

../smap -i input/image -p params -o output/image.seg -x 600 -y 500 -Smap
mv output/image.seg output/image-SMAP.seg

../smap -i input/image -p params -o output/image.seg -x 600 -y 500 -Maxlike
mv output/image.seg output/image-ML.seg

