mirror of
git://projects.qi-hardware.com/ben-scans.git
synced 2024-11-22 15:30:36 +02:00
18 lines
257 B
C
18 lines
257 B
C
|
#ifndef HISTO_H
|
||
|
#define HISTO_H
|
||
|
|
||
|
#include "array.h"
|
||
|
|
||
|
|
||
|
struct histo {
|
||
|
int n; /* number of bins */
|
||
|
int *b; /* bins */
|
||
|
};
|
||
|
|
||
|
|
||
|
struct histo *make_histo(struct array *a);
|
||
|
void free_histo(struct histo *h);
|
||
|
int median(const struct histo *h);
|
||
|
|
||
|
#endif /* HISTO_H */
|