GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <grass/gis.h>
Go to the source code of this file.
Macros | |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | NO_DEFAULT_RULE (! r->defaultDRuleSet) |
#define | NO_LEFT_INFINITE_RULE (! r->infiniteLeftSet) |
#define | NO_RIGHT_INFINITE_RULE (! r->infiniteRightSet) |
#define | NO_FINITE_RULE (r->nofRules <= 0) |
#define | NO_EXPLICIT_RULE |
#define | DEFAULT_MIN ((DCELL) 1) |
#define | DEFAULT_MAX ((DCELL) 255) |
Functions | |
void | G_fpreclass_clear (struct FPReclass *r) |
void | G_fpreclass_reset (struct FPReclass *r) |
int | G_fpreclass_init (struct FPReclass *r) |
void | G_fpreclass_set_domain (struct FPReclass *r, DCELL dLow, DCELL dHigh) |
void | G_fpreclass_set_range (struct FPReclass *r, DCELL low, DCELL high) |
int | G_fpreclass_get_limits (const struct FPReclass *r, DCELL *dMin, DCELL *dMax, DCELL *rMin, DCELL *rMax) |
int | G_fpreclass_nof_rules (const struct FPReclass *r) |
void | G_fpreclass_get_ith_rule (const struct FPReclass *r, int i, DCELL *dLow, DCELL *dHigh, DCELL *rLow, DCELL *rHigh) |
void | G_fpreclass_set_neg_infinite_rule (struct FPReclass *r, DCELL dLeft, DCELL c) |
int | G_fpreclass_get_neg_infinite_rule (const struct FPReclass *r, DCELL *dLeft, DCELL *c) |
void | G_fpreclass_set_pos_infinite_rule (struct FPReclass *r, DCELL dRight, DCELL c) |
int | G_fpreclass_get_pos_infinite_rule (const struct FPReclass *r, DCELL *dRight, DCELL *c) |
void | G_fpreclass_add_rule (struct FPReclass *r, DCELL dLow, DCELL dHigh, DCELL rLow, DCELL rHigh) |
void | G_fpreclass_reverse_rule_order (struct FPReclass *r) |
DCELL | G_fpreclass_get_cell_value (const struct FPReclass *r, DCELL cellVal) |
void | G_fpreclass_perform_di (const struct FPReclass *r, const DCELL *dcell, CELL *cell, int n) |
void | G_fpreclass_perform_df (const struct FPReclass *r, const DCELL *dcell, FCELL *cell, int n) |
void | G_fpreclass_perform_dd (const struct FPReclass *r, const DCELL *dcell, DCELL *cell, int n) |
void | G_fpreclass_perform_fi (const struct FPReclass *r, const FCELL *fcell, CELL *cell, int n) |
void | G_fpreclass_perform_ff (const struct FPReclass *r, const FCELL *fcell, FCELL *cell, int n) |
void | G_fpreclass_perform_fd (const struct FPReclass *r, const FCELL *fcell, DCELL *cell, int n) |
void | G_fpreclass_perform_ii (const struct FPReclass *r, const CELL *icell, CELL *cell, int n) |
void | G_fpreclass_perform_if (const struct FPReclass *r, const CELL *icell, FCELL *cell, int n) |
void | G_fpreclass_perform_id (const struct FPReclass *r, const CELL *icell, DCELL *cell, int n) |
#define DEFAULT_MAX ((DCELL) 255) |
Definition at line 261 of file fpreclass.c.
Referenced by G_fpreclass_get_limits().
#define DEFAULT_MIN ((DCELL) 1) |
Definition at line 260 of file fpreclass.c.
Referenced by G_fpreclass_get_limits().
Definition at line 251 of file fpreclass.c.
Definition at line 250 of file fpreclass.c.
#define NO_DEFAULT_RULE (! r->defaultDRuleSet) |
Definition at line 253 of file fpreclass.c.
Referenced by G_fpreclass_get_cell_value(), and G_fpreclass_get_limits().
#define NO_EXPLICIT_RULE |
Definition at line 257 of file fpreclass.c.
Referenced by G_fpreclass_get_cell_value(), and G_fpreclass_get_limits().
#define NO_FINITE_RULE (r->nofRules <= 0) |
Definition at line 256 of file fpreclass.c.
Referenced by G_fpreclass_get_cell_value().
#define NO_LEFT_INFINITE_RULE (! r->infiniteLeftSet) |
Definition at line 254 of file fpreclass.c.
Referenced by G_fpreclass_get_cell_value().
#define NO_RIGHT_INFINITE_RULE (! r->infiniteRightSet) |
Definition at line 255 of file fpreclass.c.
Referenced by G_fpreclass_get_cell_value().
void G_fpreclass_add_rule | ( | struct FPReclass * | r, |
DCELL | dLow, | ||
DCELL | dHigh, | ||
DCELL | rLow, | ||
DCELL | rHigh | ||
) |
Definition at line 469 of file fpreclass.c.
void G_fpreclass_clear | ( | struct FPReclass * | r | ) |
Definition at line 265 of file fpreclass.c.
Referenced by G_fpreclass_reset().
DCELL G_fpreclass_get_cell_value | ( | const struct FPReclass * | r, |
DCELL | cellVal | ||
) |
Definition at line 566 of file fpreclass.c.
References G_set_d_null_value(), NO_DEFAULT_RULE, NO_EXPLICIT_RULE, NO_FINITE_RULE, NO_LEFT_INFINITE_RULE, and NO_RIGHT_INFINITE_RULE.
Referenced by G_fpreclass_perform_dd(), G_fpreclass_perform_df(), G_fpreclass_perform_di(), G_fpreclass_perform_fd(), G_fpreclass_perform_ff(), G_fpreclass_perform_fi(), G_fpreclass_perform_id(), G_fpreclass_perform_if(), and G_fpreclass_perform_ii().
void G_fpreclass_get_ith_rule | ( | const struct FPReclass * | r, |
int | i, | ||
DCELL * | dLow, | ||
DCELL * | dHigh, | ||
DCELL * | rLow, | ||
DCELL * | rHigh | ||
) |
Definition at line 385 of file fpreclass.c.
int G_fpreclass_get_limits | ( | const struct FPReclass * | r, |
DCELL * | dMin, | ||
DCELL * | dMax, | ||
DCELL * | rMin, | ||
DCELL * | rMax | ||
) |
Definition at line 345 of file fpreclass.c.
References DEFAULT_MAX, DEFAULT_MIN, NO_DEFAULT_RULE, and NO_EXPLICIT_RULE.
int G_fpreclass_get_neg_infinite_rule | ( | const struct FPReclass * | r, |
DCELL * | dLeft, | ||
DCELL * | c | ||
) |
Definition at line 428 of file fpreclass.c.
int G_fpreclass_get_pos_infinite_rule | ( | const struct FPReclass * | r, |
DCELL * | dRight, | ||
DCELL * | c | ||
) |
Definition at line 454 of file fpreclass.c.
int G_fpreclass_init | ( | struct FPReclass * | r | ) |
Definition at line 287 of file fpreclass.c.
References G_fpreclass_reset().
int G_fpreclass_nof_rules | ( | const struct FPReclass * | r | ) |
Definition at line 377 of file fpreclass.c.
void G_fpreclass_perform_dd | ( | const struct FPReclass * | r, |
const DCELL * | dcell, | ||
DCELL * | cell, | ||
int | n | ||
) |
Definition at line 627 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_d_null_value(), G_set_d_null_value(), and n.
void G_fpreclass_perform_df | ( | const struct FPReclass * | r, |
const DCELL * | dcell, | ||
FCELL * | cell, | ||
int | n | ||
) |
Definition at line 612 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_d_null_value(), G_set_f_null_value(), and n.
void G_fpreclass_perform_di | ( | const struct FPReclass * | r, |
const DCELL * | dcell, | ||
CELL * | cell, | ||
int | n | ||
) |
Definition at line 597 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_d_null_value(), G_set_c_null_value(), and n.
void G_fpreclass_perform_fd | ( | const struct FPReclass * | r, |
const FCELL * | fcell, | ||
DCELL * | cell, | ||
int | n | ||
) |
Definition at line 672 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_f_null_value(), G_set_d_null_value(), and n.
void G_fpreclass_perform_ff | ( | const struct FPReclass * | r, |
const FCELL * | fcell, | ||
FCELL * | cell, | ||
int | n | ||
) |
Definition at line 657 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_f_null_value(), G_set_f_null_value(), and n.
void G_fpreclass_perform_fi | ( | const struct FPReclass * | r, |
const FCELL * | fcell, | ||
CELL * | cell, | ||
int | n | ||
) |
Definition at line 642 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_f_null_value(), G_set_c_null_value(), and n.
void G_fpreclass_perform_id | ( | const struct FPReclass * | r, |
const CELL * | icell, | ||
DCELL * | cell, | ||
int | n | ||
) |
Definition at line 717 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_c_null_value(), G_set_d_null_value(), and n.
void G_fpreclass_perform_if | ( | const struct FPReclass * | r, |
const CELL * | icell, | ||
FCELL * | cell, | ||
int | n | ||
) |
Definition at line 702 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_c_null_value(), G_set_f_null_value(), and n.
void G_fpreclass_perform_ii | ( | const struct FPReclass * | r, |
const CELL * | icell, | ||
CELL * | cell, | ||
int | n | ||
) |
Definition at line 687 of file fpreclass.c.
References G_fpreclass_get_cell_value(), G_is_c_null_value(), G_set_c_null_value(), and n.
void G_fpreclass_reset | ( | struct FPReclass * | r | ) |
Definition at line 275 of file fpreclass.c.
References G_fpreclass_clear(), and G_free().
Referenced by G_fpreclass_init().
void G_fpreclass_reverse_rule_order | ( | struct FPReclass * | r | ) |
Definition at line 500 of file fpreclass.c.
void G_fpreclass_set_domain | ( | struct FPReclass * | r, |
DCELL | dLow, | ||
DCELL | dHigh | ||
) |
Definition at line 297 of file fpreclass.c.
void G_fpreclass_set_neg_infinite_rule | ( | struct FPReclass * | r, |
DCELL | dLeft, | ||
DCELL | c | ||
) |
Definition at line 417 of file fpreclass.c.
void G_fpreclass_set_pos_infinite_rule | ( | struct FPReclass * | r, |
DCELL | dRight, | ||
DCELL | c | ||
) |
Definition at line 443 of file fpreclass.c.
void G_fpreclass_set_range | ( | struct FPReclass * | r, |
DCELL | low, | ||
DCELL | high | ||
) |
Definition at line 306 of file fpreclass.c.