Improve registration comparison viewer

This commit is contained in:
admin
2026-06-03 17:12:33 +08:00
parent f7b6a051d4
commit 3af18dfe19
18 changed files with 212 additions and 32 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View File

@@ -0,0 +1,89 @@
{
"moving_model_input_path": "outputs/inference/moving_model_input.nii.gz",
"warped_moving_path": "outputs/inference/warped_moving.nii.gz",
"moving_model_input_shape_xyz": [
320,
320,
352
],
"warped_moving_shape_xyz": [
320,
320,
352
],
"model_spacing_xyz_mm": [
1.0,
1.0,
1.0
],
"model_index_used_for_png": 80,
"difference_definition": "warped_moving - moving_model_input",
"intensity_unit": "preprocessed normalized intensity, not HU",
"outputs": [
{
"plane": "axial",
"moving_png": "额外测试/slice080_model_axial_moving.png",
"warped_png": "额外测试/slice080_model_axial_warped.png",
"signed_heatmap_png": "额外测试/slice080_model_axial_warped_minus_moving_signed_heatmap.png",
"absolute_heatmap_png": "额外测试/slice080_model_axial_warped_minus_moving_abs_heatmap.png",
"comparison_panel_png": "额外测试/slice080_model_axial_comparison_panel.png",
"diff_mean": 0.00033523677848279476,
"diff_std": 0.05242208391427994,
"diff_abs_mean": 0.012141597457230091,
"diff_abs_p95": 0.05994440242648125,
"diff_abs_p99": 0.26289790868759155,
"diff_min": -0.8903505206108093,
"diff_max": 0.8546980619430542,
"heatmap_limit_abs_p99": 0.26289790868759155,
"abs_heatmap_vmax_p99": 0.26289790868759155
},
{
"plane": "sagittal",
"moving_png": "额外测试/slice080_model_sagittal_moving.png",
"warped_png": "额外测试/slice080_model_sagittal_warped.png",
"signed_heatmap_png": "额外测试/slice080_model_sagittal_warped_minus_moving_signed_heatmap.png",
"absolute_heatmap_png": "额外测试/slice080_model_sagittal_warped_minus_moving_abs_heatmap.png",
"comparison_panel_png": "额外测试/slice080_model_sagittal_comparison_panel.png",
"diff_mean": 0.000903263979125768,
"diff_std": 0.03735477849841118,
"diff_abs_mean": 0.007962067611515522,
"diff_abs_p95": 0.04058312624692917,
"diff_abs_p99": 0.1862204670906067,
"diff_min": -0.8619486093521118,
"diff_max": 0.5144104957580566,
"heatmap_limit_abs_p99": 0.1862204670906067,
"abs_heatmap_vmax_p99": 0.1862204670906067
}
],
"raw_moving_dicom_reference": {
"path": "Data/患者1-仰头CT/00000080.dcm",
"png": "额外测试/slice080_raw_dicom_moving_reference.png",
"shape_rows_cols": [
512,
512
],
"instance_number": 80,
"pixel_spacing_row_col_mm": [
0.646484375,
0.646484375
],
"slice_thickness_mm": 1.0,
"note": "Raw DICOM is not directly subtracted because warped output is a 320x320x352 preprocessed NIfTI model grid."
},
"app_display_note": {
"streamlit_display_stride": 2,
"app_sagittal_slider_index": 80,
"corresponding_original_model_x_index": 160,
"moving_png": "额外测试/slice080_app_sagittal_moving_originalX160.png",
"warped_png": "额外测试/slice080_app_sagittal_warped_originalX160.png",
"signed_heatmap_png": "额外测试/slice080_app_sagittal_warped_minus_moving_signed_heatmap.png",
"absolute_heatmap_png": "额外测试/slice080_app_sagittal_warped_minus_moving_abs_heatmap.png",
"comparison_panel_png": "额外测试/slice080_app_sagittal_comparison_panel.png",
"difference_definition": "warped_moving - moving_model_input",
"diff_abs_mean": 0.021932723000645638,
"diff_abs_p95": 0.12442082911729813,
"diff_abs_p99": 0.30432429909706116,
"diff_min": -0.9248806834220886,
"diff_max": 0.8222805857658386
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB