|
16 | 16 | "id": "94b5ef80", |
17 | 17 | "metadata": { |
18 | 18 | "execution": { |
19 | | - "iopub.execute_input": "2025-05-06T15:00:00.606116Z", |
20 | | - "iopub.status.busy": "2025-05-06T15:00:00.605715Z", |
21 | | - "iopub.status.idle": "2025-05-06T15:00:01.032329Z", |
22 | | - "shell.execute_reply": "2025-05-06T15:00:01.031919Z" |
| 19 | + "iopub.execute_input": "2025-05-06T15:12:20.953919Z", |
| 20 | + "iopub.status.busy": "2025-05-06T15:12:20.953741Z", |
| 21 | + "iopub.status.idle": "2025-05-06T15:12:21.377249Z", |
| 22 | + "shell.execute_reply": "2025-05-06T15:12:21.376868Z" |
23 | 23 | }, |
24 | 24 | "vscode": { |
25 | 25 | "languageId": "plaintext" |
|
51 | 51 | "id": "1ee080d3", |
52 | 52 | "metadata": { |
53 | 53 | "execution": { |
54 | | - "iopub.execute_input": "2025-05-06T15:00:01.033832Z", |
55 | | - "iopub.status.busy": "2025-05-06T15:00:01.033665Z", |
56 | | - "iopub.status.idle": "2025-05-06T15:00:01.159986Z", |
57 | | - "shell.execute_reply": "2025-05-06T15:00:01.159598Z" |
| 54 | + "iopub.execute_input": "2025-05-06T15:12:21.378734Z", |
| 55 | + "iopub.status.busy": "2025-05-06T15:12:21.378466Z", |
| 56 | + "iopub.status.idle": "2025-05-06T15:12:21.505526Z", |
| 57 | + "shell.execute_reply": "2025-05-06T15:12:21.505139Z" |
58 | 58 | }, |
59 | 59 | "vscode": { |
60 | 60 | "languageId": "plaintext" |
|
112 | 112 | "id": "7af5a922", |
113 | 113 | "metadata": { |
114 | 114 | "execution": { |
115 | | - "iopub.execute_input": "2025-05-06T15:00:01.161687Z", |
116 | | - "iopub.status.busy": "2025-05-06T15:00:01.161575Z", |
117 | | - "iopub.status.idle": "2025-05-06T15:00:02.113539Z", |
118 | | - "shell.execute_reply": "2025-05-06T15:00:02.113208Z" |
| 115 | + "iopub.execute_input": "2025-05-06T15:12:21.507227Z", |
| 116 | + "iopub.status.busy": "2025-05-06T15:12:21.506988Z", |
| 117 | + "iopub.status.idle": "2025-05-06T15:12:22.456790Z", |
| 118 | + "shell.execute_reply": "2025-05-06T15:12:22.456432Z" |
119 | 119 | }, |
120 | 120 | "vscode": { |
121 | 121 | "languageId": "plaintext" |
|
180 | 180 | "id": "493f1153", |
181 | 181 | "metadata": { |
182 | 182 | "execution": { |
183 | | - "iopub.execute_input": "2025-05-06T15:00:02.114668Z", |
184 | | - "iopub.status.busy": "2025-05-06T15:00:02.114562Z", |
185 | | - "iopub.status.idle": "2025-05-06T15:00:02.593785Z", |
186 | | - "shell.execute_reply": "2025-05-06T15:00:02.593320Z" |
| 183 | + "iopub.execute_input": "2025-05-06T15:12:22.458453Z", |
| 184 | + "iopub.status.busy": "2025-05-06T15:12:22.458252Z", |
| 185 | + "iopub.status.idle": "2025-05-06T15:12:22.955364Z", |
| 186 | + "shell.execute_reply": "2025-05-06T15:12:22.955038Z" |
187 | 187 | }, |
188 | 188 | "vscode": { |
189 | 189 | "languageId": "plaintext" |
|
234 | 234 | "id": "6e7f236c", |
235 | 235 | "metadata": { |
236 | 236 | "execution": { |
237 | | - "iopub.execute_input": "2025-05-06T15:00:02.595470Z", |
238 | | - "iopub.status.busy": "2025-05-06T15:00:02.595160Z", |
239 | | - "iopub.status.idle": "2025-05-06T15:00:03.424846Z", |
240 | | - "shell.execute_reply": "2025-05-06T15:00:03.424373Z" |
| 237 | + "iopub.execute_input": "2025-05-06T15:12:22.958009Z", |
| 238 | + "iopub.status.busy": "2025-05-06T15:12:22.957852Z", |
| 239 | + "iopub.status.idle": "2025-05-06T15:12:23.787774Z", |
| 240 | + "shell.execute_reply": "2025-05-06T15:12:23.787334Z" |
241 | 241 | }, |
242 | 242 | "vscode": { |
243 | 243 | "languageId": "plaintext" |
|
297 | 297 | "id": "696c040a", |
298 | 298 | "metadata": { |
299 | 299 | "execution": { |
300 | | - "iopub.execute_input": "2025-05-06T15:00:03.426239Z", |
301 | | - "iopub.status.busy": "2025-05-06T15:00:03.425947Z", |
302 | | - "iopub.status.idle": "2025-05-06T15:00:04.248022Z", |
303 | | - "shell.execute_reply": "2025-05-06T15:00:04.247639Z" |
| 300 | + "iopub.execute_input": "2025-05-06T15:12:23.789629Z", |
| 301 | + "iopub.status.busy": "2025-05-06T15:12:23.789521Z", |
| 302 | + "iopub.status.idle": "2025-05-06T15:12:24.627322Z", |
| 303 | + "shell.execute_reply": "2025-05-06T15:12:24.626880Z" |
304 | 304 | }, |
305 | 305 | "vscode": { |
306 | 306 | "languageId": "plaintext" |
|
384 | 384 | "id": "30104594", |
385 | 385 | "metadata": { |
386 | 386 | "execution": { |
387 | | - "iopub.execute_input": "2025-05-06T15:00:04.249930Z", |
388 | | - "iopub.status.busy": "2025-05-06T15:00:04.249817Z", |
389 | | - "iopub.status.idle": "2025-05-06T15:00:04.252365Z", |
390 | | - "shell.execute_reply": "2025-05-06T15:00:04.252013Z" |
| 387 | + "iopub.execute_input": "2025-05-06T15:12:24.629240Z", |
| 388 | + "iopub.status.busy": "2025-05-06T15:12:24.629132Z", |
| 389 | + "iopub.status.idle": "2025-05-06T15:12:24.631791Z", |
| 390 | + "shell.execute_reply": "2025-05-06T15:12:24.631408Z" |
391 | 391 | }, |
392 | 392 | "vscode": { |
393 | 393 | "languageId": "plaintext" |
|
413 | 413 | "id": "2556561b", |
414 | 414 | "metadata": { |
415 | 415 | "execution": { |
416 | | - "iopub.execute_input": "2025-05-06T15:00:04.253626Z", |
417 | | - "iopub.status.busy": "2025-05-06T15:00:04.253528Z", |
418 | | - "iopub.status.idle": "2025-05-06T15:00:04.256229Z", |
419 | | - "shell.execute_reply": "2025-05-06T15:00:04.255908Z" |
| 416 | + "iopub.execute_input": "2025-05-06T15:12:24.633150Z", |
| 417 | + "iopub.status.busy": "2025-05-06T15:12:24.633049Z", |
| 418 | + "iopub.status.idle": "2025-05-06T15:12:24.635847Z", |
| 419 | + "shell.execute_reply": "2025-05-06T15:12:24.635469Z" |
420 | 420 | }, |
421 | 421 | "vscode": { |
422 | 422 | "languageId": "plaintext" |
|
437 | 437 | "source": [ |
438 | 438 | "data[p_bone], data[p_air]" |
439 | 439 | ] |
| 440 | + }, |
| 441 | + { |
| 442 | + "cell_type": "markdown", |
| 443 | + "id": "45106463", |
| 444 | + "metadata": {}, |
| 445 | + "source": [ |
| 446 | + "Normalization to HU values now takes a simple Dreisatz:" |
| 447 | + ] |
| 448 | + }, |
| 449 | + { |
| 450 | + "cell_type": "code", |
| 451 | + "execution_count": 9, |
| 452 | + "id": "36b3ab19", |
| 453 | + "metadata": { |
| 454 | + "execution": { |
| 455 | + "iopub.execute_input": "2025-05-06T15:12:24.637147Z", |
| 456 | + "iopub.status.busy": "2025-05-06T15:12:24.637048Z", |
| 457 | + "iopub.status.idle": "2025-05-06T15:12:24.680185Z", |
| 458 | + "shell.execute_reply": "2025-05-06T15:12:24.679739Z" |
| 459 | + }, |
| 460 | + "vscode": { |
| 461 | + "languageId": "plaintext" |
| 462 | + } |
| 463 | + }, |
| 464 | + "outputs": [ |
| 465 | + { |
| 466 | + "data": { |
| 467 | + "text/plain": [ |
| 468 | + "(1000.0, -1000.0)" |
| 469 | + ] |
| 470 | + }, |
| 471 | + "execution_count": 9, |
| 472 | + "metadata": {}, |
| 473 | + "output_type": "execute_result" |
| 474 | + } |
| 475 | + ], |
| 476 | + "source": [ |
| 477 | + "data_huv = data - data[p_air]\n", |
| 478 | + "data_huv = (data_huv / data_huv[p_bone]) * 2000 - 1000\n", |
| 479 | + "data_huv = data_huv.clip(-1024, 3071)\n", |
| 480 | + "\n", |
| 481 | + "data_huv[p_bone], data_huv[p_air]" |
| 482 | + ] |
440 | 483 | } |
441 | 484 | ], |
442 | 485 | "metadata": { |
|
0 commit comments