-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patha_H.h
More file actions
50 lines (26 loc) · 1.3 KB
/
Copy patha_H.h
File metadata and controls
50 lines (26 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef ___a_H___
#define ___a_H___
#include <valarray>
using namespace std;
/* =============================================================================================
Define structures
========================================================================================== */
struct info_H { //info are data products from analysis
int vals[6]; //crude check for saturation, look @ range. top pixel, top-reject, 3/4, mid, 1/4, min
};
struct params_H { //parameters control the program and set variables
int width; //width of the image
int nel; //nelements
int reject; //for sorting/crude dyanmic range check
int comp; //compression for saving
};
//______________________________________________________________________________________________
/* =============================================================================================
Function declarations
========================================================================================== */
bool analyzeH(info_H& im, params_H val, valarray<unsigned char> imarr);
bool sort_H(info_H& im, params_H val, valarray<unsigned char> imarr);
bool init_params_H(params_H& val, int width, int nel);
bool init_H(info_H im);
bool diag_H(params_H val, info_H im);
#endif