Commit 2d9f77a
committed
feat(edge-detection): add edge detection filter (d flag)
- Implement detect_edges() function in helpers.c to apply edge detection using pixel intensity gradients (Sobel operator).
- Update helpers.h with function prototype for detect_edges().
- Add small 'd' flag handling in filter.c to apply the filter via CLI.
- Running .\filter.exe d input.bmp output.bmp now generates an output.bmp with highlighted edges.
- Verified functionality on sample BMP image; edges appear as black-and-white outlines.
- Enhances image filtering suite with a new algorithm for outline detection.1 parent 2f1ef2b commit 2d9f77a
3 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments