Add soble edge detection

This commit is contained in:
Harshit-Dhanwalkar 2026-05-20 17:54:48 +05:30
parent c1f0298dae
commit 9eaf33ea36
4 changed files with 71 additions and 14 deletions

View file

@ -7,12 +7,13 @@
#define ASCII_CHARS_DEFAULT " .:-=+*#%@"
typedef struct {
int brightness; /* additive offset applied to gray: -128..128 */
int contrast; /* multiplier in percent; 100 = no change */
int invert; /* non-zero: flip brightness -> charset mapping */
int color; /* non-zero: emit ANSI truecolor escape codes */
int dither; /* non-zero: apply Floyd-Steinberg dithering */
const char *charset; /* custom charset string; NULL -> ASCII_CHARS_DEFAULT */
int brightness;
int contrast;
int invert;
int color;
int edges;
int dither;
const char *charset;
} ascii_opts_t;
// Convert YUYV raw data to grayscale