add more statistics

This commit is contained in:
2025-05-14 09:04:11 +03:00
parent fd2508c667
commit 3f7b5081ea
10 changed files with 168 additions and 81 deletions

View File

@@ -32,6 +32,11 @@ typedef uint8_t Imtype;
// WARNING! Check code if you change Imtype: e.g. recalcexp() and other
#define HISTOSZ (256)
typedef struct{ // statistics: mean, RMS, area
float xc; float yc; float xsigma; float ysigma;
int area;
} ptstat_t;
typedef struct{
int width; // width
int height; // height
@@ -40,6 +45,7 @@ typedef struct{
Imtype maxval;
float avg_intensity;
Imtype background; // background value
ptstat_t stat; // image statistics
} Image;
// input file/directory type