| 1 |
|
#ifndef lint |
| 2 |
|
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 4 |
< |
/* EVALGLARE V3.05 |
| 4 |
> |
/* EVALGLARE V3.06 |
| 5 |
|
* Evalglare Software License, Version 3.0x |
| 6 |
|
* |
| 7 |
|
* Copyright (c) 1995 - 2022 Fraunhofer ISE, EPFL. |
| 401 |
|
- changing abs_max,Lveil from float to double |
| 402 |
|
*/ |
| 403 |
|
|
| 404 |
+ |
/* evalglare.c, v3.06 2024/06/25 |
| 405 |
+ |
- fix bug missing border pixel when cutting with -G |
| 406 |
+ |
*/ |
| 407 |
|
|
| 408 |
+ |
|
| 409 |
+ |
|
| 410 |
+ |
|
| 411 |
|
#define EVALGLARE |
| 412 |
|
#define PROGNAME "evalglare" |
| 413 |
< |
#define VERSION "3.05 release 25.06.2024 by J.Wienold, EPFL" |
| 413 |
> |
#define VERSION "3.06 release 01.10.2025 by J.Wienold, EPFL" |
| 414 |
|
#define RELEASENAME PROGNAME " " VERSION |
| 415 |
|
|
| 416 |
|
|
| 966 |
|
{ |
| 967 |
|
int x,y; |
| 968 |
|
double border,ang,teta,phi,phi2; |
| 969 |
< |
for(x=0;x<pict_get_xsize(p)-1;x++) |
| 970 |
< |
for(y=0;y<pict_get_ysize(p)-1;y++) { |
| 969 |
> |
for(x=0;x<pict_get_xsize(p);x++) |
| 970 |
> |
for(y=0;y<pict_get_ysize(p);y++) { |
| 971 |
|
if (pict_get_hangle(p,x,y,p->view.vdir,p->view.vup,&ang)) { |
| 972 |
|
if (pict_is_validpixel(p, x, y)) { |
| 973 |
|
pict_get_vangle(p,x,y,p->view.vdir,p->view.vup,&phi2); |
| 1020 |
|
|
| 1021 |
|
int x,y; |
| 1022 |
|
double border,ang,teta,phi,phi2; |
| 1023 |
< |
for(x=0;x<pict_get_xsize(p)-1;x++) |
| 1024 |
< |
for(y=0;y<pict_get_ysize(p)-1;y++) { |
| 1023 |
> |
for(x=0;x<pict_get_xsize(p);x++) |
| 1024 |
> |
for(y=0;y<pict_get_ysize(p);y++) { |
| 1025 |
|
if (pict_get_hangle(p,x,y,p->view.vdir,p->view.vup,&ang)) { |
| 1026 |
|
if (pict_is_validpixel(p, x, y)) { |
| 1027 |
|
pict_get_vangle(p,x,y,p->view.vdir,p->view.vup,&phi2); |
| 1076 |
|
|
| 1077 |
|
int x,y; |
| 1078 |
|
double border,ang,teta,phi,phi2,lum,newlum; |
| 1079 |
< |
for(x=0;x<pict_get_xsize(p)-1;x++) |
| 1080 |
< |
for(y=0;y<pict_get_ysize(p)-1;y++) { |
| 1079 |
> |
for(x=0;x<pict_get_xsize(p);x++) |
| 1080 |
> |
for(y=0;y<pict_get_ysize(p);y++) { |
| 1081 |
|
if (pict_get_hangle(p,x,y,p->view.vdir,p->view.vup,&ang)) { |
| 1082 |
|
if (DOT(pict_get_cached_dir(p,x,y),p->view.vdir) >= 0.0) { |
| 1083 |
|
pict_get_vangle(p,x,y,p->view.vdir,p->view.vup,&phi2); |
| 1563 |
|
char** temp_image_name; |
| 1564 |
|
int *x_temp_img, *y_temp_img; |
| 1565 |
|
double *scale_image_scans; |
| 1566 |
+ |
int *new_gs_number = NULL; |
| 1567 |
|
VIEW userview = STDVIEW; |
| 1568 |
|
int gotuserview = 0; |
| 1569 |
|
|
| 1704 |
|
abs_max = 0; |
| 1705 |
|
fixargv0(argv[0]); |
| 1706 |
|
E_v_contr = 0.0; |
| 1707 |
< |
strcpy(version, "3.05 release 25.06.2024 by J.Wienold"); |
| 1707 |
> |
strcpy(version, "3.06 release 01.10.2025 by J.Wienold"); |
| 1708 |
|
low_light_corr=1.0; |
| 1709 |
|
output = 0; |
| 1710 |
|
calc_vill = 0; |
| 3084 |
|
|
| 3085 |
|
} |
| 3086 |
|
|
| 3087 |
< |
int new_gs_number[igs+1]; |
| 3087 |
> |
new_gs_number = (int *)malloc(sizeof(int)*(igs+1)); |
| 3088 |
|
|
| 3089 |
|
i = 0; |
| 3090 |
|
for (x = 0; x <= igs; x++) { |