kolhizin / bujo

Proof of concepts and sharedlib for bujo app
0 stars 0 forks source link

Local angle field by gradient filter #33

Closed kolhizin closed 5 years ago

kolhizin commented 5 years ago

Angle field construction through Radon is pretty slow.

Idea:

  1. Apply gaus filter to make image smoother, so that gradients are more regular
  2. Calculate dx, dy images through convolution with corresponding filters
  3. Calculate angle-gradients for each angle (more angles requires more accurate dx/dy) using dxcos(a) +dysin(a)
  4. Run mean filter to average results across region
  5. For each point select angle by argmax
kolhizin commented 5 years ago

Very bad results and also too long