The open imaging DSP library
Loading...
Searching...
No Matches
stats.h
1
7#ifndef MPIX_STATS_H
8#define MPIX_STATS_H
9
10#include <stdint.h>
11#include <stddef.h>
12
21void mpix_stats_rgb_avg(const uint8_t *buf, uint16_t width, uint16_t height, uint32_t fourcc,
22 uint8_t avg[3], uint16_t nval);
23
24void mpix_stats_rgb_hist(const uint8_t *buf, uint16_t width, uint16_t height, uint32_t fourcc,
25 uint16_t *hist, size_t hist_size, uint16_t nval);
26
27void mpix_stats_luma_hist(const uint8_t *buf, uint16_t width, uint16_t height, uint32_t fourcc,
28 uint16_t *hist, size_t hist_size, uint16_t nval);
29
39void mpix_rggb8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width,
40 uint8_t rgb24avg[3], uint16_t nval);
45void mpix_bggr8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width,
46 uint8_t rgb24avg[3], uint16_t nval);
51void mpix_gbrg8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width,
52 uint8_t rgb24avg[3], uint16_t nval);
57void mpix_grbg8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width,
58 uint8_t rgb24avg[3], uint16_t nval);
59
69void mpix_rgb24frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t *rgb24hist,
70 size_t hist_size, uint16_t nval);
71
82void mpix_rggb8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width,
83 uint16_t *rgb24hist, size_t hist_size, uint16_t nval);
88void mpix_gbrg8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width,
89 uint16_t *rgb24hist, size_t hist_size, uint16_t nval);
94void mpix_bggr8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width,
95 uint16_t *rgb24hist, size_t hist_size, uint16_t nval);
100void mpix_grbg8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width,
101 uint16_t *rgb24hist, size_t hist_size, uint16_t nval);
102
112void mpix_rgb24frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t *y8hist,
113 size_t hist_size, uint16_t nval);
114
125void mpix_rggb8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width,
126 uint16_t *y8hist, size_t hist_size, uint16_t nval);
131void mpix_gbrg8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width,
132 uint16_t *y8hist, size_t hist_size, uint16_t nval);
137void mpix_bggr8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width,
138 uint16_t *y8hist, size_t hist_size, uint16_t nval);
143void mpix_grbg8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width,
144 uint16_t *y8hist, size_t hist_size, uint16_t nval);
145
146#endif
void mpix_bggr8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width, uint8_t rgb24avg[3], uint16_t nval)
Collect red, green, blue channel averages of all pixels in an BGGR8 frame.
void mpix_rggb8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *y8hist, size_t hist_size, uint16_t nval)
Collect an histogram for the Y channel, obtained from the values of an RGGB8 frame.
void mpix_gbrg8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *rgb24hist, size_t hist_size, uint16_t nval)
Collect an histogram for each of the red, green, blue channels of GBRG8 frame.
void mpix_rgb24frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t *y8hist, size_t hist_size, uint16_t nval)
Collect an histogram for the Y channel, obtained from the pixel values of the image.
void mpix_bggr8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *y8hist, size_t hist_size, uint16_t nval)
Collect an histogram for the Y channel, obtained from the values of an BGGR8 frame.
void mpix_gbrg8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width, uint8_t rgb24avg[3], uint16_t nval)
Collect red, green, blue channel averages of all pixels in an GBRG8 frame.
void mpix_gbrg8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *y8hist, size_t hist_size, uint16_t nval)
Collect an histogram for the Y channel, obtained from the values of an GBRG8 frame.
void mpix_rggb8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *rgb24hist, size_t hist_size, uint16_t nval)
Collect an histogram for each of the red, green, blue channels of an RGGB8 frame.
void mpix_stats_rgb_avg(const uint8_t *buf, uint16_t width, uint16_t height, uint32_t fourcc, uint8_t avg[3], uint16_t nval)
Collect red, green, blue channel averages of all pixels in an RGB24 frame.
void mpix_rggb8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width, uint8_t rgb24avg[3], uint16_t nval)
Collect red, green, blue channel averages of all pixels in an RGGB8 frame.
void mpix_grbg8frame_to_y8hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *y8hist, size_t hist_size, uint16_t nval)
Collect an histogram for the Y channel, obtained from the values of an GRBG8 frame.
void mpix_rgb24frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t *rgb24hist, size_t hist_size, uint16_t nval)
Collect an histogram for each of the red, green, blue channels of an RGB24 frame.
void mpix_grbg8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *rgb24hist, size_t hist_size, uint16_t nval)
Collect an histogram for each of the red, green, blue channels of GRBG8 frame.
void mpix_bggr8frame_to_rgb24hist(const uint8_t *buf, size_t buf_size, uint16_t width, uint16_t *rgb24hist, size_t hist_size, uint16_t nval)
Collect an histogram for each of the red, green, blue channels of BGGR8 frame.
void mpix_grbg8frame_to_rgb24avg(const uint8_t *buf, size_t size, uint16_t width, uint8_t rgb24avg[3], uint16_t nval)
Collect red, green, blue channel averages of all pixels in an GRBG8 frame.