ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/evalglare.c
(Generate patch)

Comparing ray/src/util/evalglare.c (file contents):
Revision 2.4 by greg, Thu Jul 28 16:46:10 2016 UTC vs.
Revision 2.5 by greg, Tue Aug 2 16:35:01 2016 UTC

# Line 1 | Line 1
1   #ifndef lint
2   static const char RCSid[] = "$Id$";
3   #endif
4 < /* EVALGLARE V1.29
4 > /* EVALGLARE V1.31
5   * Evalglare Software License, Version 2.0
6   *
7   * Copyright (c) 1995 - 2016 Fraunhofer ISE, EPFL.
# Line 310 | Line 310 | changed masking threshold to 0.05 cd/m2
310     */
311   /* evalglare.c, v1.30 2016/07/28 change zonal output: If just one zone is specified, only one zone shows up in the output (bug removal).
312     */
313 + /* evalglare.c, v1.31 2016/08/02  bug removal: default output did not calculate the amout of glare sources before and therefore no_glaresources was set to zero causing dgi,ugr being set to zero as well. Now renumbering of the glare sources and calculation of the amount of glare sources is done for all output versions.
314 +   */
315   #define EVALGLARE
316   #define PROGNAME "evalglare"
317 < #define VERSION "1.30 release 29.07.2016 by EPFL, J.Wienold"
317 > #define VERSION "1.31 release 02.08.2016 by EPFL, J.Wienold"
318   #define RELEASENAME PROGNAME " " VERSION
319  
320  
# Line 2495 | Line 2497 | if (calcfast == 1 || search_pix <= 1.0) {
2497   /* print detailed output */
2498          
2499          
2498        if (detail_out == 1) {
2500  
2501   /* masking */
2502  
# Line 2540 | Line 2541 | if (calcfast == 1 || search_pix <= 1.0) {
2541   /* PSGV only why masking of window is applied! */
2542                   pgsv = get_pgsv(E_v, E_v_mask, omega_mask, lum_mask_av);
2543                   pgsv_sat =get_pgsv_sat(E_v);
2544 +
2545 +        if (detail_out == 1) {
2546 +
2547                  printf ("masking:no_pixels,omega,av_lum,median_lum,std_lum,perc_75,perc_95,lum_min,lum_max,pgsv,pgsv_sat: %i %f %f %f %f %f %f %f %f %f %f\n",i_mask,omega_mask,lum_mask_av,lum_mask_median[0],sqrt(lum_mask_std[0]),per_75_mask,per_95_mask,bbox[0],bbox[1],pgsv,pgsv_sat );
2548  
2549 +        }      
2550                  
2546                
2551          }
2552  
2553   /* zones */
# Line 2633 | Line 2637 | if (calcfast == 1 || search_pix <= 1.0) {
2637                  per_95_z1=lum_z1_median[0];
2638                  muc_rvar_get_median(s_z1,lum_z1_median);
2639                  muc_rvar_get_bounding_box(s_z1,bbox_z1);
2640 <
2640 >        if (detail_out == 1) {
2641 >
2642                  printf ("zoning:z1_omega,z1_av_lum,z1_median_lum,z1_std_lum,z1_perc_75,z1_perc_95,z1_lum_min,z1_lum_max: %f %f %f %f %f %f %f %f\n",omega_z1,lum_z1_av,lum_z1_median[0],sqrt(lum_z1_std[0]),per_75_z1,per_95_z1,bbox_z1[0],bbox_z1[1] );
2643  
2644                 if (zones == 2 ) {
2645  
2646                  printf ("zoning:z2_omega,z2_av_lum,z2_median_lum,z2_std_lum,z2_perc_75,z2_perc_95,z2_lum_min,z2_lum_max:  %f %f %f %f %f %f %f %f\n",omega_z2,lum_z2_av,lum_z2_median[0],sqrt(lum_z2_std[0]),per_75_z2,per_95_z2,bbox_z2[0],bbox_z2[1] );
2647 < }            
2647 > } }            
2648                  
2649          }
2650  
# Line 2653 | Line 2658 | if (calcfast == 1 || search_pix <= 1.0) {
2658                  no_glaresources=i;
2659  
2660   /* glare sources */
2661 +        if (detail_out == 1) {
2662 +
2663                  printf
2664                          ("%i No pixels x-pos y-pos L_s Omega_s Posindx L_b L_t E_vert Edir Max_Lum Sigma xdir ydir zdir Eglare_cie Lveil_cie teta glare_zone\n",
2665                           i);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines