Skip to content

Commit a19c0eb

Browse files
author
monkstone
committed
2 parents d54cf95 + b8d8111 commit a19c0eb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

video_filtering/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
### Experiment with different edge-detection algorithms
2+
3+
By modifying the filter #defines (this can't be done dynamically so just edit the filter), although I have an idea for using a erb template to make this easier...
4+
5+
Modify `edge_detect.glsl` directly to use these alternative defines included in the shader.
6+
27
In the provided example the the `EDGE_FUNC` is
3-
`define EDGE_FUNC edge`
8+
`#define EDGE_FUNC edge`
49

510
Alternatives are `colorEdge, trueColorEdge`
611

7-
812
In the provided example the sketch uses a sobel filter algorithm
913

1014
`#define SOBEL`
1115

12-
Alernatives are `KAYYALI_NESW, KAYYALI_SENW, PREWITT, ROBERTSCROSS, SCHARR`
13-
14-
Modify `edge_detect.glsl` directly to use these alternative algorithms included in the shader.
16+
Alternatives are `KAYYALI_NESW, KAYYALI_SENW, PREWITT, ROBERTSCROSS, SCHARR`
1517

16-
Other tunable option to experiment is `SCHARR`, that defaults to `1.0` for STEP but if `#define SCHARR` sets step at `0.15`
17-
18+
Another tunable option to experiment with is `SCHARR`, that defaults to `1.0` for STEP but if `#define SCHARR` sets step at `0.15`

0 commit comments

Comments
 (0)