11#ifndef FILTERS_GP_WEIGHTED_MEDIAN_H
12#define FILTERS_GP_WEIGHTED_MEDIAN_H
16typedef struct gp_median_weights {
19 unsigned int *weights;
22int gp_filter_weighted_median_ex(
const gp_pixmap *src,
27 gp_median_weights *weights,
33 gp_median_weights *weights,
36static inline int gp_filter_weighted_median(
const gp_pixmap *src,
38 gp_median_weights *weights,
41 return gp_filter_weighted_median_ex(src, 0, 0, src->
w, src->
h,
42 dst, 0, 0, weights, callback);
46 gp_median_weights *weights,
49 return gp_filter_weighted_median_ex_alloc(src, 0, 0, src->
w, src->
h,
int gp_coord
Integer type for coordinates i.e. x, y, ...
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
uint32_t h
Pixmap height in pixels.
uint32_t w
Pixmap width in pixels.