Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove obsolete functions in ProjDataInfoCylindrical and ProjDataInfoCylindricalNoArcCorr #105

Open
1 of 13 tasks
KrisThielemans opened this issue Sep 11, 2017 · 1 comment
Milestone

Comments

@KrisThielemans
Copy link
Collaborator

KrisThielemans commented Sep 11, 2017

There's overlap between old and new (safer) functions. We should get rid of the old ones. Let's try to document here what needs to be done.

Functions that handle only rings or only tang_pos/view (these should become either private or protected)

  • get_det_num_pair_for_view_tangential_pos_num (replace with get_det_pos_pair_for_bin). Used in a few places including ProjMatrixByBinUsingRayTracing and some normalisation code.

  • get_view_tangential_pos_num_for_det_num_pair (make private). Used in

    • get_bin_for_det_pair
  • get_segment_axial_pos_num_for_ring_pair (make private?)

    • CListEventCylindricalScannerWithViewTangRingRingEncoding (used there to save some computation)
    • get_bin_for_det_pair
  • get_num_ring_pairs_for_segment_axial_pos_num (use get_num_det_pos_pairs_for_bin). Used in

    • LmToProjData::get_compression_count
    • get_num_det_pos_pairs_for_bin
  • get_ring_pair_for_segment_axial_pos_num (make protected). Used in

    • get_det_pair_for_bin
  • get_all_ring_pairs_for_segment_axial_pos_num (make protected). Used in

    • get_all_det_pos_pairs_for_bin

Functions that use 4 coordinates (these should be removed)

  • get_bin_for_det_pair (replace with get_bin_for_det_pos_pair). Made private in make get_bin_for_det_pair private and doc TOF argument NikEfth/STIR#63 and hence Time Of Flight reconstruction  #304

  • find_bin_given_cartesian_coordinates_of_detection (replace with get_bin(LOR&)). Used in

  • find_scanner_coordinates_given_cartesian_coordinates (replace with get_LOR or get_LOR_as_2_points). Used in

  • get_det_pair_for_bin (replace with get_det_pos_pair_for_bin). Used in

    • find_cartesian_coordinates_of_detection
    • get_det_pos_pair_for_bin
    • construct_randoms_from_singles.cxx
    • MLnorm.cxx
  • find_cartesian_coordinates_of_detection (replace with get_LOR or get_LOR_as_2_points). Used in

    • ScatterEstimationByBin::find_detectors
  • find_cartesian_coordinates_given_scanner_coordinates_of_the_front_surface. This is not used.

  • find_cartesian_coordinates_given_scanner_coordinates (replace with get_LOR or get_LOR_as_2_points). Used in

    • CListEventCylindricalScannerWithDiscreteDetectors::get_LOR
    • find_cartesian_coordinates_of_detection

Of course, many of these are also used in test_proj_data_info.cxx

@KrisThielemans KrisThielemans added this to the v4.0 milestone Sep 11, 2017
@KrisThielemans KrisThielemans changed the title remove obsolete function in ProjDatInfoCylindricalNoArcCorr remove obsolete functions in ProjDataInfoCylindrical and ProjDataInfoCylindricalNoArcCorr Sep 11, 2017
@ashgillman
Copy link
Collaborator

find_bin_given_cartesian_coordinates_of_detection (replace with get_bin(LOR&)). Used in

#618 Renames to get_bin_for_gantry_coordinate_pair. Should this still be replaced?

find_scanner_coordinates_given_cartesian_coordinates (replace with get_LOR or get_LOR_as_2_points). Used in

#618 Renames to get_det_pair_for_gantry_coordinate_pair. Should this still be replaced?

find_cartesian_coordinates_of_detection (replace with get_LOR or get_LOR_as_2_points). Used in

#618 renames to get_bin_detector_locations_in_gantry_coordinates. Should this still be replaced?

find_cartesian_coordinates_given_scanner_coordinates (replace with get_LOR or get_LOR_as_2_points). Used in

#618 renames to get_det_pair_locations_in_gantry_coordinates. Should this still be replaced?

@KrisThielemans KrisThielemans modified the milestones: v5.0, v7.0 Mar 18, 2022
KrisThielemans added a commit to KrisThielemans/STIR-1 that referenced this issue Jan 4, 2024
Use get_bin_for_det_pos_pair instead.

Addresses UCL#105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants