irplib_hist.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef IRPLIB_HIST_H
00029 #define IRPLIB_HIST_H
00030
00031 #include <cpl.h>
00032
00033 typedef struct _irplib_hist_ irplib_hist;
00034
00035
00036
00037 irplib_hist *
00038 irplib_hist_new(void);
00039
00040 void
00041 irplib_hist_delete(irplib_hist *);
00042
00043
00044
00045 cpl_error_code
00046 irplib_hist_init(irplib_hist *,
00047 unsigned long ,
00048 double ,
00049 double );
00050
00051
00052
00053 unsigned long
00054 irplib_hist_get_value(const irplib_hist *,
00055 const unsigned long);
00056
00057 unsigned long
00058 irplib_hist_get_nbins(const irplib_hist *);
00059
00060 double
00061 irplib_hist_get_bin_size(const irplib_hist *);
00062
00063 double
00064 irplib_hist_get_range(const irplib_hist *);
00065
00066 double
00067 irplib_hist_get_start(const irplib_hist *);
00068
00069
00070
00071 cpl_error_code
00072 irplib_hist_fill(irplib_hist *,
00073 const cpl_image *);
00074
00075
00076
00077 unsigned long
00078 irplib_hist_get_max(const irplib_hist *,
00079 unsigned long *);
00080
00081
00082
00083 cpl_table *
00084 irplib_hist_cast_table(const irplib_hist *);
00085
00086
00087
00088 cpl_error_code
00089 irplib_hist_collapse(irplib_hist *,
00090 unsigned long);
00091
00092 #endif
00093