FFmpeg
|
Go to the source code of this file.
Macros | |
#define | DEPTH 8 |
#define | DEPTH 16 |
#define | COPY_MAXIMA(ay, ax, by, bx) |
Functions | |
static int | get_rounded_direction (int gx, int gy) |
void | ff_non_maximum_suppression (int w, int h, uint8_t *dst, int dst_linesize, const int8_t *dir, int dir_linesize, const uint16_t *src, int src_linesize) |
Filters rounded gradients to drop all non-maxima pixels in the magnitude image Expects gradients generated by av_image_sobel() Expects zero's in the destination buffer dst. More... | |
void | ff_double_threshold (int low, int high, int w, int h, uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize) |
Filters all pixels in src to keep all pixels > high, and keep all pixels > low where all surrounding pixels > high. More... | |
#define DEPTH 8 |
Definition at line 54 of file edge_common.c.
#define DEPTH 16 |
Definition at line 54 of file edge_common.c.
#define COPY_MAXIMA | ( | ay, | |
ax, | |||
by, | |||
bx | |||
) |
Definition at line 22 of file edge_common.c.
Referenced by sobel().
void ff_non_maximum_suppression | ( | int | w, |
int | h, | ||
uint8_t * | dst, | ||
int | dst_linesize, | ||
const int8_t * | dir, | ||
int | dir_linesize, | ||
const uint16_t * | src, | ||
int | src_linesize | ||
) |
Filters rounded gradients to drop all non-maxima pixels in the magnitude image Expects gradients generated by av_image_sobel() Expects zero's in the destination buffer dst.
w | the width of the image in pixels |
h | the height of the image in pixels |
dst | data pointers to magnitude image |
dst_linesize | linesizes for the magnitude image |
dir | data pointers to direction image |
dir_linesize | linesizes for the direction image |
src | data pointers to source image |
src_linesize | linesizes for the source image |
Definition at line 60 of file edge_common.c.
Referenced by blurdetect_filter_frame(), and filter_frame().
void ff_double_threshold | ( | int | low, |
int | high, | ||
int | w, | ||
int | h, | ||
uint8_t * | dst, | ||
int | dst_linesize, | ||
const uint8_t * | src, | ||
int | src_linesize | ||
) |
Filters all pixels in src to keep all pixels > high, and keep all pixels > low where all surrounding pixels > high.
low | the low threshold value |
high | the hegh threshold value |
w | the width of the image in pixels |
h | the height of the image in pixels |
dst | data pointers to destination image |
dst_linesize | linesizes for the destination image |
src | data pointers to source image |
src_linesize | linesizes for the source image |
Definition at line 89 of file edge_common.c.
Referenced by blurdetect_filter_frame(), and filter_frame().