GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
Imagery library - functions for wx.iclass. More...
Go to the source code of this file.
Functions | |
void | open_band_files (struct Ref *refer, CELL ***band_buffer, int **band_fd) |
Open and allocate space for the group band files. More... | |
void | close_band_files (struct Ref *refer, CELL **band_buffer, int *band_fd) |
Close and free space for the group band files. More... | |
void | read_band_row (CELL **band_buffer, int *band_fd, int nbands, int row) |
Read one row of each band. More... | |
Imagery library - functions for wx.iclass.
Computation based on training areas for supervised classification. Based on i.class module (GRASS 6).
Reading bands cell category values.
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_bands.c.
Close and free space for the group band files.
refer | pointer to band files structure |
band_buffer | buffer to read one row of each band |
band_fd | band files descriptors |
Definition at line 67 of file iclass_bands.c.
References G_debug(), G_free(), Ref::nfiles, and Rast_close().
Referenced by I_iclass_analysis(), and I_iclass_create_raster().
Open and allocate space for the group band files.
refer | pointer to band files structure | |
[out] | band_buffer | buffer to read one row of each band |
[out] | band_fd | band files descriptors |
Definition at line 39 of file iclass_bands.c.
References Ref::file, G_debug(), G_malloc, Ref_Files::mapset, Ref_Files::name, name, Ref::nfiles, Rast_allocate_c_buf(), and Rast_open_old().
Referenced by I_iclass_analysis(), and I_iclass_create_raster().
void read_band_row | ( | CELL ** | band_buffer, |
int * | band_fd, | ||
int | nbands, | ||
int | row | ||
) |
Read one row of each band.
band_buffer | buffer to read one row of each band |
band_fd | band files descriptors |
nbands | number of band files |
row | data row |
Definition at line 91 of file iclass_bands.c.
References G_debug(), and Rast_get_c_row_nomask().