File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,15 @@ If you think that you can optimize the performance for CPU (without GPU Accelera
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
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
+
39
40
The result will look like this
40
41
![ image] ( https://user-images.githubusercontent.com/17680514/116011894-f9d39980-a62f-11eb-931d-489effaf5f4a.png )
41
42
That the texts/shapes have no opacity at all but everything around it have opacity.
43
+
42
44
The magic was done here:
45
+
43
46
CPU algorithm: https://github.com/gileli121/GlassCode/blob/80150bd18be2118cfde4b3943950ba65d8746dc8/CPP/process_layer_cpu.cpp#L690
47
+
44
48
NVIDIA GPU algorithm (works much faster!): https://github.com/gileli121/GlassCode/blob/1c89a644bae2b2c51f274b3ad1aee07fb0d36ae8/CPP/process_layer_gpu.cu#L433
45
49
46
50
You can’t perform that action at this time.
0 commit comments