36 long count, total, sum;
76 if (!first && red2 == red && blu2 == blu && grn2 == grn)
91 if (!first && cat > prev)
112 int red2, grn2, blu2;
134 for (i = 0; i <= statf->
count; i++) {
141 val2 = exp(val2) - 1;
147 if (i < statf->
count)
148 sum += statf->
stats[i];
150 if (!first && red2 == red && blu2 == blu && grn2 == grn)
159 if (i == statf->
count)
168 if (!first && val2 > val)
184 double delta, lmin, lmax;
197 lmin = log(
min + delta);
198 lmax = log(
max + delta);
212 for (i = 0; i <= samples; i++) {
213 int red2, grn2, blu2;
222 else if (i == samples)
225 lx = lmin + (lmax - lmin) * i / samples;
253 double absmin, absmax, amin, amax, delta, lamin, lamax;
264 amin =
MIN(absmin, absmax);
265 amax =
MAX(absmin, absmax);
272 lamin = log(amin + delta);
273 lamax = log(amax + delta);
288 for (i = 0; i <= samples; i++) {
289 int red2, grn2, blu2;
298 else if (i == samples)
301 lx = lamin + (lamax - lamin) * i / samples;
void Rast_add_d_color_rule(const DCELL *, int, int, int, const DCELL *, int, int, int, struct Colors *)
Adds the floating-point color rule (DCELL version)
void Rast_set_null_value_color(int, int, int, struct Colors *)
Set color for NULL-value.
void Rast_add_c_color_rule(const CELL *, int, int, int, const CELL *, int, int, int, struct Colors *)
Adds the integer color rule (CELL version)
int Rast_rewind_cell_stats(struct Cell_stats *)
Reset/rewind cell stats.
void Rast_init_colors(struct Colors *)
Initialize color structure.
int Rast_next_cell_stat(CELL *, long *, struct Cell_stats *)
Retrieve sorted cell stats.
void Rast_get_d_color_range(DCELL *, DCELL *, const struct Colors *)
Get color range values (DCELL)
void Rast_get_null_value_color(int *, int *, int *, const struct Colors *)
Gets color for null value.
int Rast_get_d_color(const DCELL *, int *, int *, int *, struct Colors *)
Gets color from raster map (DCELL)
void Rast_set_default_color(int, int, int, struct Colors *)
Set default color value.
void Rast_get_default_color(int *, int *, int *, const struct Colors *)
Gets default color.