omid3098 / OpenFlowMap

MIT License
99 stars 7 forks source link

Rays in blur effect are not processed independently #6

Closed fight4dream closed 11 months ago

fight4dream commented 11 months ago

in BlurEffect.cs, BlurRays(), the pseudocode being for x for y averageDirection = average of neighborhoods of rayCount size around rays(x,y) write into rays(x,y)

because it writes into rays(x,y) immediately, subsequence rays which are within the neighborhoods e.g. (x, y+1) will get the modified result instead of the original direction values.