Skip to content

Commit 52b1316

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ If you think that you can optimize the performance for CPU (without GPU Accelera
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.
3838
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+
3940
The result will look like this
4041
![image](https://user-images.githubusercontent.com/17680514/116011894-f9d39980-a62f-11eb-931d-489effaf5f4a.png)
4142
That the texts/shapes have no opacity at all but everything around it have opacity.
43+
4244
The magic was done here:
45+
4346
CPU algorithm: https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690
47+
4448
NVIDIA GPU algorithm (works much faster!): https://github.com/gileli121/GlassCode/blob/1c89a644bae2b2c51f274b3ad1aee07fb0d36ae8/CPP/process_layer_gpu.cu#L433
4549

4650

0 commit comments

Comments
 (0)