GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
Imagery library - functions for wx.iclass. More...
#include <grass/imagery.h>
#include <grass/glocale.h>
#include <grass/vector.h>
#include "iclass_local_proto.h"
Go to the source code of this file.
Functions | |
int | I_iclass_analysis (IClass_statistics *statistics, struct Ref *refer, struct Map_info *map_info, const char *layer_name, const char *group, const char *raster_name) |
Calculates statistical values for one class and multiple bands based on training areas. More... | |
int | I_iclass_init_group (const char *group_name, const char *subgroup_name, struct Ref *refer) |
Read files for the specified group subgroup into the Ref structure. More... | |
void | I_iclass_create_raster (IClass_statistics *statistics, struct Ref *refer, const char *raster_name) |
Create raster map based on statistics. More... | |
Imagery library - functions for wx.iclass.
Computation based on training areas for supervised classification. Based on i.class module (GRASS 6).
Copyright (C) 1999-2007, 2011 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file iclass.c.
int I_iclass_analysis | ( | IClass_statistics * | statistics, |
struct Ref * | refer, | ||
struct Map_info * | map_info, | ||
const char * | layer_name, | ||
const char * | group, | ||
const char * | raster_name | ||
) |
Calculates statistical values for one class and multiple bands based on training areas.
Calculates values statistical based on the cells that are within training areas. Creates raster map to display the cells of the image bands which fall within standard deviations from the means.
statistics | pointer to bands statistics |
refer | pointer to band files structure |
map_info | vector map with training areas |
layer_name | vector layer |
group | name of imagery group |
raster_name | name of temporary raster map (to be created) |
Definition at line 50 of file iclass.c.
References _, alloc_statistics(), IClass_statistics::cat, close_band_files(), create_raster(), free_perimeters(), G_debug(), G_get_set_window(), G_warning(), make_all_statistics(), Ref::nfiles, open_band_files(), and vector2perimeters().
void I_iclass_create_raster | ( | IClass_statistics * | statistics, |
struct Ref * | refer, | ||
const char * | raster_name | ||
) |
Create raster map based on statistics.
statistics | pointer to bands statistics |
refer | pointer to band files structure |
raster_name | name of temporary raster map (to be created) |
Definition at line 160 of file iclass.c.
References b, band_range(), close_band_files(), create_raster(), IClass_statistics::nbands, and open_band_files().
int I_iclass_init_group | ( | const char * | group_name, |
const char * | subgroup_name, | ||
struct Ref * | refer | ||
) |
Read files for the specified group subgroup into the Ref structure.
group_name | name of imagery group | |
subgroup_name | name of imagery subgroup | |
subgroup_name | if it is NULL, bands from group will be used | |
[out] | refer | pointer to band files structure |
Definition at line 105 of file iclass.c.
References _, Ref::file, G_debug(), G_find_raster(), G_warning(), I_free_group_ref(), I_get_group_ref(), I_get_subgroup_ref(), I_init_group_ref(), Ref_Files::mapset, Ref_Files::name, Ref::nfiles, and NULL.