| Algorithm 1: Intersection object filtering algorithm |
|
: the number of objects in the database D: the array of subscripts that need to be deleted in the database |
| 1: ; |
| 2: for
= 0; < ; ++ do 3: for = + 1; < ; ++ do |
| 4: Calculate the intersection between object and ; |
| 5: ; |
| 6: ; |
| 7: end for
8: ; |
| 9: if then |
| 10: ; 11: ; 12: elseif then 13: ; 14: ; |
| 15: end if |
| 16: end for
17: ; |
| 18: for
= 0; < ; ++ do 19: if then 20: Delete the object in the database ; 21: end if |
| 22: end for |