|
Algorithm 3: The Difference-of-Gaussian filter to invalidate all image pixels belonging to weakly textured areas. |
|
|
|
|
| 1 |
Use a Gaussian filter with a kernel of pixels to smooth the reference frame , yielding . |
| 2 |
Compute the DoG image depicting local image gradients, according to: . |
| 3 |
Apply a binary threshold to compute the DoG mask , marking all image areas in which the intensity change is greater than . |
| 4 |
Remove activation areas smaller than 7 pixels in by applying a speckle filter. |
| 5 |
Dilate with a kernel size of pixels to fill small holes in activation areas. |
| 6 |
Remove deactivation areas smaller than 21 pixels by applying a speckle filter to the inverted DoG mask . |
| 7 |
Invalidate pixels in , and for which . |