|
Algorithm 1: 3D manipulation algorithm |
| Input: index’s coordinate , thumb’s coordinate , encompassing lung |
| volume’s coordinates
|
| Output: lung’s matrix (rotation matrix , translation vector ) |
| ← coordinateFormIndex
|
| ← coordinateFormThumb
|
| ← coordinateFormCube
|
| ← coordinateFormCube
|
| while () and () do
|
| if () and () then
|
|
← IncidenceIndexCube () |
| ← IncidenceThumbCube () |
| if () and () then
|
| ← (
|
| ← [
|
| end
|
| end
|
| end
|