Skip to content

Commit

Permalink
Switch to distance image approach
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Oct 29, 2024
1 parent a2c6a64 commit d0dc01c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oai_analysis/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def analysis_pipeline(input_path, output_path, laterality, keep_intermediate_out
fc_mesh = mp.itk_mesh_to_vtk_mesh(fc_mesh_itk)
tc_mesh = mp.itk_mesh_to_vtk_mesh(tc_mesh_itk)

thickness_via_mesh_splitting = True
thickness_via_mesh_splitting = False
if thickness_via_mesh_splitting:
print("Computing the thickness map via mesh splitting into inner and outer")
_, fc_mesh = mp.get_thickness_mesh(FC_prob, mesh_type='FC')
Expand All @@ -170,8 +170,8 @@ def analysis_pipeline(input_path, output_path, laterality, keep_intermediate_out
write_vtk_mesh(tc_mesh, output_path + "/tc_mesh_patient.vtk")

print("Transforming meshes into atlas space")
fc_mesh_atlas = transform_mesh(fc_mesh, phi_BA, output_path + "/fc_mesh", keep_intermediate_outputs)
tc_mesh_atlas = transform_mesh(tc_mesh, phi_BA, output_path + "/tc_mesh", keep_intermediate_outputs)
fc_mesh_atlas = transform_mesh(fc_mesh, phi_BA, output_path + "/fc_mesh", False)
tc_mesh_atlas = transform_mesh(tc_mesh, phi_BA, output_path + "/tc_mesh", False)
if keep_intermediate_outputs:
write_vtk_mesh(fc_mesh_atlas, output_path + "/fc_mesh_atlas.vtk")
write_vtk_mesh(tc_mesh_atlas, output_path + "/tc_mesh_atlas.vtk")
Expand Down

0 comments on commit d0dc01c

Please sign in to comment.