ESP32 motion
|
#include "convolution.h"
#include "deflicker.h"
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
Functions | |
float | calc_brightness (uint8_t *img, int size) |
calculate brightness as the average pixel val More... | |
float | get_factor () |
calculate brightness ratio related to previous brightness More... | |
bool | deflicker (uint8_t *img, int w, int h) |
perform deflickering More... | |
Deflickering algorithm
float calc_brightness | ( | uint8_t * | img, |
int | size | ||
) |
calculate brightness as the average pixel val
img | pointer to img |
size | size of the image |
bool deflicker | ( | uint8_t * | img, |
int | w, | ||
int | h | ||
) |
perform deflickering
img | uint8 pointer to image |
w | width |
h | height |
float get_factor | ( | ) |
calculate brightness ratio related to previous brightness