mirror of
https://github.com/Harshit-Dhanwalkar/AsciiCam.git
synced 2026-06-30 11:19:38 +02:00
Add soble edge detection
This commit is contained in:
parent
c1f0298dae
commit
9eaf33ea36
4 changed files with 71 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue