|
Algorithm 1. Spatial-Motion Segmentation |
| Start |
|
Input: Raw events, set ; original images; the number of clusters (). |
|
Output: Event-cluster membership probabilities (), and motion parameters (). |
| Procedure: |
|
1:For each image, do depth estimation. |
|
End for;
|
|
2: For to , do:
|
|
|
|
|
|
End for:
|
|
|
|
3:For, do:
|
| computing according to
|
|
End for:
|
|
4: For to , do:
|
| warping according to
|
|
End for:
|
|
5: For each warped , do weighted accumulate: |
|
|
|
6: For to , do:
|
| If the variance is not converged, then:
|
| update the using
|
| update the according to SSA-Gradient Ascent: |
| computing
|
|
End if:
|
|
|
|
End for:
|
| End |