|
|
|
|
|
by theschwa
1066 days ago
|
|
Can someone help me understand why a CPU based method like EDT would be used instead of a more GPU friendly method like jump fill? It seems like you could use the sun pixel distances like he did, but then use them with jump fill, but maybe I'm missing something? |
|
Also the distance transform algorithm in the article could be implemented on a GPU using a thread per row & column rather than per pixel. (At least in CUDA - I’m not immediately certain how to do it in GLSL but I guess someone could do it.) This is not optimal, of course, but parallelizing rows is perhaps a lot better than a single-threaded loop over the image.