2
/****************************************************************************
5
* AUTHOR(S): Michael Shapiro (USACERL) (original contributor)
6
* Markus Neteler <neteler itc.it>,
7
* Roberto Flor <flor itc.it>,
8
* Bernhard Reiter <bernhard intevation.de>,
9
* Brad Douglas <rez touchofmadness.com>,
10
* Glynn Clements <glynn gclements.plus.com>,
11
* Jan-Oliver Wagner <jan intevation.de>
12
* PURPOSE: segment multispectral images using a spectral class model
13
* known as a Gaussian mixture distribution
14
* COPYRIGHT: (C) 1999-2008 by the GRASS Development Team
16
* This program is free software under the GNU General Public
17
* License (>=v2). Read the file COPYING that comes with GRASS
20
*****************************************************************************/
23
#include <grass/imagery.h>
24
#include <grass/glocale.h>
28
int main(int argc, char *argv[])
30
struct parms parms; /* command line parms */
31
struct files files; /* file descriptors, io, buffers */
33
struct GModule *module;
37
module = G_define_module();
38
G_add_keyword(_("imagery"));
39
G_add_keyword(_("classification"));
40
G_add_keyword(_("supervised classification"));
41
G_add_keyword(_("segmentation"));
42
G_add_keyword(_("SMAP"));
44
_("Performs contextual image classification "
45
"using sequential maximum a posteriori (SMAP) estimation.");
47
parse(argc, argv, &parms);
48
openfiles(&parms, &files);
49
read_signatures(&parms, &S);
50
create_output_labels(&S, &files);
52
segment(&S, &parms, &files);
54
closefiles(&parms, &files);