int main(){ printf("Entre com os parâmetros\n\n"); oxigenio(); coliformesfecais(); ph(); dbo(); totalnitrato(); totalfosfato(); temperatura(); turbidez(); residuostotais(); somatorio(); return 0; }
double Pole::albedo_od_T() { switch(albedo_rodzaj) { case 1: { if(rodz_powierzchni==0) { if(temperatura()<(268)) return 0.85; else if(temperatura()<278) return ((temperatura()-268)*0.07+0.85); else return 0.15; } else { if(temperatura()<(268)) return 0.85; else if(temperatura()<278) return ((temperatura()-268)*0.055+0.85); else return 0.4; } } case 0: if(rodz_powierzchni==0) return albedo_parametr_morze; else return albedo_parametr_lad; default: return albedo_parametr_lad; } }
void temperature_c ( unsigned char *src, unsigned char *dst, int cols, int filas, int src_row_size, int dst_row_size){ unsigned char (*src_matrix)[src_row_size] = (unsigned char (*)[src_row_size]) src; unsigned char (*dst_matrix)[dst_row_size] = (unsigned char (*)[dst_row_size]) dst; for (int i = 0; i < filas; i++){ for (int j = 0; j < cols; j++){ rgb_t *p_d = (rgb_t*)&dst_matrix[i][j*3]; rgb_t *p_s = (rgb_t*)&src_matrix[i][j*3]; temperatura(p_d, p_s->r, p_s->g, p_s->b);}}}