27 #include <grass/interpf.h>
39 int i, j, cfmask = -1, irev, MASKfd;
41 CELL *cellmask, *MASK;
64 for (i = 0; i < params->
nsizr; i++) {
65 irev = params->
nsizr - i - 1;
70 for (j = 0; j < params->
nsizc; j++) {
71 if ((cellmask && (cellmask[j] == 0 ||
74 BM_set(bitmask, j, irev, 0);
76 BM_set(bitmask, j, irev, 1);
91 double numberz,
int n_leafs)
105 for (ii = 0; ii < n_leafs; ii++)
int BM_set(struct BM *, int, int, int)
Sets bitmap value to 'val' at location 'x' 'y'.
struct BM * BM_create(int, int)
Create bitmap of dimension x/y and return structure token.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
const char * G_find_raster2(const char *, const char *)
Find a raster map (look but don't touch)
void G_message(const char *,...) __attribute__((format(printf
void Rast_close(int)
Close a raster map.
int Rast_open_old(const char *, const char *)
Open an existing integer raster map (cell)
void Rast_get_c_row(int, CELL *, int)
Get raster row (CELL type)
CELL * Rast_allocate_c_buf(void)
Allocate memory for a CELL type raster map.
#define Rast_is_c_null_value(cellVal)
int Rast_maskfd(void)
Test for MASK.