|
56 | 56 | " height=5,\n",
|
57 | 57 | " delx=0.75,\n",
|
58 | 58 | " convention=\"diffdrr\",\n",
|
59 |
| - ").to(\"cpu\")\n", |
60 |
| - "\n", |
61 |
| - "drr.move_carm(rotations, translations)" |
| 59 | + ").to(\"cpu\")" |
62 | 60 | ]
|
63 | 61 | },
|
64 | 62 | {
|
|
86 | 84 | " gamma = (0 / 8) * torch.pi\n",
|
87 | 85 | " rotations = torch.Tensor([[theta, phi, gamma]])\n",
|
88 | 86 | " \n",
|
89 |
| - " drr.move_carm(rotations, translations)\n", |
90 |
| - " source, rays = drr.detector.make_xrays(drr.rotations, drr.translations)\n", |
| 87 | + " source, rays = drr.detector.make_xrays(rotations, translations)\n", |
91 | 88 | " source_ = source.detach().cpu()\n",
|
92 | 89 | " rays_ = rays.permute(2, 0, 1).detach().cpu()\n",
|
93 | 90 | "\n",
|
|
132 | 129 | " gamma = (0 / 8) * torch.pi\n",
|
133 | 130 | " rotations = torch.Tensor([[theta, phi, gamma]])\n",
|
134 | 131 | " \n",
|
135 |
| - " drr.move_carm(rotations, translations)\n", |
136 |
| - " source, rays = drr.detector.make_xrays(drr.rotations, drr.translations)\n", |
| 132 | + " source, rays = drr.detector.make_xrays(rotations, translations)\n", |
137 | 133 | " source_ = source.detach().cpu()\n",
|
138 | 134 | " rays_ = rays.permute(2, 0, 1).detach().cpu()\n",
|
139 | 135 | "\n",
|
|
178 | 174 | " gamma = (i / 8) * torch.pi\n",
|
179 | 175 | " rotations = torch.Tensor([[theta, phi, gamma]])\n",
|
180 | 176 | " \n",
|
181 |
| - " drr.move_carm(rotations, translations)\n", |
182 |
| - " source, rays = drr.detector.make_xrays(drr.rotations, drr.translations)\n", |
| 177 | + " source, rays = drr.detector.make_xrays(rotations, translations)\n", |
183 | 178 | " source_ = source.detach().cpu()\n",
|
184 | 179 | " rays_ = rays.permute(2, 0, 1).detach().cpu()\n",
|
185 | 180 | "\n",
|
|
0 commit comments