Skip to content

Commit 6aad0d8

Browse files
authored
Update README.md
1 parent 1c89a64 commit 6aad0d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ Otherwise, you may have to reduce the screen resolution to maximum 1920x1080 bec
3535
If you think that you can optimize the performance for CPU (without GPU Acceleration), feel free to design a better algorithm here:
3636
https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690
3737
Replace this function with your faster algorithm and submit PR.
38-
The function is responsible for detecting the texts(or any shapes...) so that when the opacity applied, the opacity will not include the texts
38+
The function is responsible for detecting the texts(or any shapes...) so that when the opacity applied, the opacity will not include the texts.
39+
The result will look like this
40+
![image](https://user-images.githubusercontent.com/17680514/116011894-f9d39980-a62f-11eb-931d-489effaf5f4a.png)
41+
That the texts/shapes have no opacity at all but everything around it have opacity.
42+
The magic was done here:
43+
CPU algorithm: https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690
44+
NVIDIA GPU algorithm (works much faster!): https://github.com/gileli121/GlassCode/blob/1c89a644bae2b2c51f274b3ad1aee07fb0d36ae8/CPP/process_layer_gpu.cu#L433
3945

4046

4147

0 commit comments

Comments
 (0)