File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,13 @@ Otherwise, you may have to reduce the screen resolution to maximum 1920x1080 bec
35
35
If you think that you can optimize the performance for CPU (without GPU Acceleration), feel free to design a better algorithm here:
36
36
https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690
37
37
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
39
45
40
46
41
47
You can’t perform that action at this time.
0 commit comments