ROPO
Loading...
Searching...
No Matches
fmi_image_histogram.h
1
24/* HISTOGRAM as such defined already in fmi_image */
25
26/* convolution windows */
27/* EI TOIMI */
28void convolve(FmiImage *source,FmiImage *target,int mask_width,int mask_height,int **mask,int divisor);
29
30
31void clear_histogram_full(Histogram hist);
32
33
34/* histogram windows */
35void initialize_histogram_int(FmiImage *source,Histogram h,int hrad,int vrad,int i,int j,void (* hist_func)(Histogram));
36void up(FmiImage *source,Histogram h,int hrad,int vrad,int *i,int *j);
37void down(FmiImage *source,Histogram h,int hrad,int vrad,int *i,int *j);
38void left(FmiImage *source,Histogram h,int hrad,int vrad,int *i,int *j);
39void right(FmiImage *source,Histogram h,int hrad,int vrad,int *i,int *j);
40
41extern Histogram histogram_weights;
42extern Histogram histogram_sine;
43extern Histogram histogram_cosine;
44/*void initialize_histogram_trigon(); */
45
46extern int histogram_sample_count; /* histogram_median2 */
47extern int histogram_threshold; /* histogram_variance_rot */
48
49extern FmiImage *histogram_weight_image;
50
51int histogram_median_biased(Histogram h,int count);
52int histogram_median_biased_top(Histogram h,int count);
53
54int histogram_size(Histogram h);
55int histogram_sum(Histogram h);
56int histogram_area(Histogram h);
57int histogram_area_inv255(Histogram h);
58int histogram_area2(Histogram h); /* sigmoid-moderated */
59int histogram_area2_inv255(Histogram h); /* sigmoid-moderated */
60int histogram_perimeter(Histogram h);
61int histogram_perimeter2(Histogram h);
62/*int histogram_perimeter_normalized(Histogram h); */
63int histogram_compactness(Histogram h);
64int histogram_min(Histogram h);
65int histogram_max(Histogram h);
66int histogram_range(Histogram h);
67int histogram_median(Histogram h); /* dont use this! recalcs "count"*/
68
69int histogram_median2(Histogram h); /* use this! with precalc'd "count"*/
70int histogram_median2_top(Histogram h);
71int histogram_mean(Histogram h);
72int histogram_mean2(Histogram h); /* use this! with precalc'd "count"*/
73int histogram_mean_nonzero(Histogram h);
74/*Histogram histogram_weighted_mean2_weights; */
75/*int histogram_weighted_mean(Histogram h,Histogram weights); */
76/*int histogram_weighted_mean2(Histogram h); */
77int histogram_mean_weighted(Histogram h);
78extern int (* histogram_mean_weighted_pyramid)(Histogram h);
79
80int histogram_variance_rot(Histogram h);
81
82int histogram_dom(Histogram h);
83int histogram_dom_nonzero(Histogram h);
84int histogram_principal_component_ratio(Histogram h);
85int histogram_smoothness(Histogram h);
86
87void histogram_dump_stats(Histogram h);
88void histogram_dump_nonzero(Histogram h);
89
90int histogram_meanX(Histogram h);
91int histogram_meanY(Histogram h);
92
93extern int histogram_scaling_parameter;
94extern int (* histogram_scaling_function)(int param, int value);
95int histogram_semisigmoid(int a, int x);
96int histogram_semisigmoid_inv(int a, int x);
97
98void pipeline_process(FmiImage *source,FmiImage *target,int horz_rad,int vert_rad,int (* histogram_function)(Histogram));