GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
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) |
#define DEFAULT_MAX ((DCELL) 255) |
Definition at line 262 of file fpreclass.c.
Referenced by Rast_fpreclass_get_limits().
#define DEFAULT_MIN ((DCELL) 1) |
Definition at line 261 of file fpreclass.c.
Referenced by Rast_fpreclass_get_limits().
Definition at line 252 of file fpreclass.c.
Definition at line 251 of file fpreclass.c.
#define NO_DEFAULT_RULE (! r->defaultDRuleSet) |
Definition at line 254 of file fpreclass.c.
Referenced by Rast_fpreclass_get_limits().
#define NO_EXPLICIT_RULE |
Definition at line 258 of file fpreclass.c.
Referenced by Rast_fpreclass_get_limits().
#define NO_FINITE_RULE (r->nofRules <= 0) |
Definition at line 257 of file fpreclass.c.
#define NO_LEFT_INFINITE_RULE (! r->infiniteLeftSet) |
Definition at line 255 of file fpreclass.c.
#define NO_RIGHT_INFINITE_RULE (! r->infiniteRightSet) |
Definition at line 256 of file fpreclass.c.
void Rast_fpreclass_add_rule | ( | struct FPReclass * | r, |
DCELL | dLow, | ||
DCELL | dHigh, | ||
DCELL | rLow, | ||
DCELL | rHigh | ||
) |
Definition at line 466 of file fpreclass.c.
void Rast_fpreclass_clear | ( | struct FPReclass * | r | ) |
Definition at line 266 of file fpreclass.c.
References FPReclass::defaultDRuleSet, FPReclass::defaultRRuleSet, FPReclass::infiniteLeftSet, FPReclass::infiniteRightSet, and FPReclass::nofRules.
Referenced by Rast_fpreclass_reset().
Definition at line 562 of file fpreclass.c.
Referenced by Rast_fpreclass_perform_dd(), Rast_fpreclass_perform_df(), Rast_fpreclass_perform_di(), Rast_fpreclass_perform_fd(), Rast_fpreclass_perform_ff(), Rast_fpreclass_perform_fi(), Rast_fpreclass_perform_id(), Rast_fpreclass_perform_if(), and Rast_fpreclass_perform_ii().
void Rast_fpreclass_get_ith_rule | ( | const struct FPReclass * | r, |
int | i, | ||
DCELL * | dLow, | ||
DCELL * | dHigh, | ||
DCELL * | rLow, | ||
DCELL * | rHigh | ||
) |
Definition at line 383 of file fpreclass.c.
References FPReclass_table::dHigh, FPReclass_table::dLow, FPReclass_table::rHigh, FPReclass_table::rLow, and FPReclass::table.
int Rast_fpreclass_get_limits | ( | const struct FPReclass * | r, |
DCELL * | dMin, | ||
DCELL * | dMax, | ||
DCELL * | rMin, | ||
DCELL * | rMax | ||
) |
Definition at line 343 of file fpreclass.c.
References DEFAULT_MAX, DEFAULT_MIN, FPReclass::defaultDMax, FPReclass::defaultDMin, FPReclass::defaultRMax, FPReclass::defaultRMin, FPReclass::defaultRRuleSet, FPReclass::dMax, FPReclass::dMin, NO_DEFAULT_RULE, NO_EXPLICIT_RULE, FPReclass::rMax, and FPReclass::rMin.
Definition at line 427 of file fpreclass.c.
Definition at line 452 of file fpreclass.c.
void Rast_fpreclass_init | ( | struct FPReclass * | r | ) |
Definition at line 288 of file fpreclass.c.
References FPReclass::maxNofRules, and Rast_fpreclass_reset().
int Rast_fpreclass_nof_rules | ( | const struct FPReclass * | r | ) |
Definition at line 376 of file fpreclass.c.
References FPReclass::nofRules.
void Rast_fpreclass_perform_dd | ( | const struct FPReclass * | r, |
const DCELL * | dcell, | ||
DCELL * | cell, | ||
int | n | ||
) |
Definition at line 620 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_d_null_value, and Rast_set_d_null_value().
void Rast_fpreclass_perform_df | ( | const struct FPReclass * | r, |
const DCELL * | dcell, | ||
FCELL * | cell, | ||
int | n | ||
) |
Definition at line 606 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_d_null_value, and Rast_set_f_null_value().
void Rast_fpreclass_perform_di | ( | const struct FPReclass * | r, |
const DCELL * | dcell, | ||
CELL * | cell, | ||
int | n | ||
) |
Definition at line 592 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_d_null_value, and Rast_set_c_null_value().
void Rast_fpreclass_perform_fd | ( | const struct FPReclass * | r, |
const FCELL * | fcell, | ||
DCELL * | cell, | ||
int | n | ||
) |
Definition at line 662 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_f_null_value, and Rast_set_d_null_value().
void Rast_fpreclass_perform_ff | ( | const struct FPReclass * | r, |
const FCELL * | fcell, | ||
FCELL * | cell, | ||
int | n | ||
) |
Definition at line 648 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_f_null_value, and Rast_set_f_null_value().
void Rast_fpreclass_perform_fi | ( | const struct FPReclass * | r, |
const FCELL * | fcell, | ||
CELL * | cell, | ||
int | n | ||
) |
Definition at line 634 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_f_null_value, and Rast_set_c_null_value().
void Rast_fpreclass_perform_id | ( | const struct FPReclass * | r, |
const CELL * | icell, | ||
DCELL * | cell, | ||
int | n | ||
) |
Definition at line 704 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_c_null_value, and Rast_set_d_null_value().
void Rast_fpreclass_perform_if | ( | const struct FPReclass * | r, |
const CELL * | icell, | ||
FCELL * | cell, | ||
int | n | ||
) |
Definition at line 690 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_c_null_value, and Rast_set_f_null_value().
void Rast_fpreclass_perform_ii | ( | const struct FPReclass * | r, |
const CELL * | icell, | ||
CELL * | cell, | ||
int | n | ||
) |
Definition at line 676 of file fpreclass.c.
References Rast_fpreclass_get_cell_value(), Rast_is_c_null_value, and Rast_set_c_null_value().
void Rast_fpreclass_reset | ( | struct FPReclass * | r | ) |
Definition at line 276 of file fpreclass.c.
References G_free(), FPReclass::maxNofRules, Rast_fpreclass_clear(), and FPReclass::table.
Referenced by Rast_fpreclass_init().
void Rast_fpreclass_reverse_rule_order | ( | struct FPReclass * | r | ) |
Definition at line 497 of file fpreclass.c.
References FPReclass_table::dHigh, FPReclass_table::dLow, FPReclass::nofRules, FPReclass_table::rHigh, FPReclass_table::rLow, and FPReclass::table.
Definition at line 296 of file fpreclass.c.
References FPReclass::defaultDMax, FPReclass::defaultDMin, and FPReclass::defaultDRuleSet.
Definition at line 416 of file fpreclass.c.
Definition at line 441 of file fpreclass.c.
Definition at line 305 of file fpreclass.c.
References FPReclass::defaultRMax, FPReclass::defaultRMin, and FPReclass::defaultRRuleSet.