Jafar
|
00001 #ifndef _HISTO_FAMILY_STRUCT_H 00002 #define _HISTO_FAMILY_STRUCT_H 00003 00004 00005 /************ histogram definition ********/ 00006 typedef struct HistoHeader 00007 { 00008 int i_min, i_max, j_min, j_max ; 00009 float vi_min, vi_max, vj_min, vj_max; 00010 int total; 00011 }HistoHeader; 00012 00013 /* definition of each element of the "HistoHeader" structure 00014 00015 (minimun value of j) (maximun value of j) 00016 vj_min vj_max 00017 _____________________________________\ DimJ 00018 vi_min | / 00019 | j_min j_max 00020 | ___________________ 00021 | i_min| | 00022 | | | 00023 | | | 00024 | i_max|___________________| 00025 | 00026 | 00027 vi_max \|/ DimI 00028 00029 For exemple in one gray image (defined by "j"). The minimun value is 0 00030 ("vj_min" = 0.0)and the maximun value is 255 ("vj_max" = 255.0), but the 00031 construction of the histogram can not start and finish in the first and last 00032 bin. In others words "j_min" is the start bin and "j_max" is the last bin use 00033 for image representation (or histogram construction). 00034 00035 the start and last values use for histogram construction is defined by 00036 start (vj_max - vj_min)*j_min/nbin_j 00037 last (vj_max - vj_min)*j_max/nbin_j 00038 00039 "total" === Histogram data number 00040 00041 histogram dimensions are defined by "DimenI" and "DimenJ" 00042 the bin position (i,j) is obtained by j*DimenI+i 00043 */ 00044 00045 /* bidimensional histogram with float or/and integer data */ 00046 typedef struct HistoFam{ 00047 int nhisto; /* number of histograms in the family */ 00048 int DimI,DimJ; /* histograms dimensions */ 00049 HistoHeader *Header; 00050 float *Data; 00051 }HistoFam; 00052 00053 00054 /* strcutur for the histogram result */ 00055 typedef struct HistoResult{ 00056 int nhisto; /* number of histograms in the family*/ 00057 int DimI; /* Rings number */ 00058 float *Data; 00059 }HistoResult; 00060 00061 /*the result is given by the followin form: 00062 -------------------> j (j_max = nhisto)(For each histo) 00063 | 00064 | 00065 | 00066 | 00067 | 00068 \|/ 00069 i (Radio number (radius sampling)) 00070 */ 00071 00072 00073 #endif /* _HISTO_FAMILY_STRUCT_H */
Generated on Wed Oct 15 2014 00:37:25 for Jafar by doxygen 1.7.6.1 |