Skip to content

Commit

Permalink
delete some obsolete/disabled code
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Jul 25, 2024
1 parent 8c57bc9 commit 6224d74
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
6 changes: 0 additions & 6 deletions src/include/stir/OSMAPOSL/OSMAPOSLReconstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ class OSMAPOSLReconstruction
//! determines whether non-positive values in the initial image will be set to small positive ones
bool enforce_initial_positivity;

//! determines wether voxels outside a circular FOV will be set to 0 or not
/*! Currently this circular FOV is slightly smaller than the actual image size (1 pixel at each end or so).
\deprecated
*/
bool do_rim_truncation;

//! subiteration interval at which to apply inter-update filters
int inter_update_filter_interval;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,49 +780,6 @@ PoissonLogLikelihoodWithLinearModelForMeanAndProjData<TargetT>::actual_compute_o
return accum;
}

#if 0
template<typename TargetT>
float
PoissonLogLikelihoodWithLinearModelForMeanAndProjData<TargetT>::
sum_projection_data() const
{

float counts=0.0F;

for (int segment_num = -max_segment_num_to_process; segment_num <= max_segment_num_to_process; ++segment_num)
{
for (int timing_pos_num = -max_timing_pos_num_to_process; timing_pos_num <= max_timing_pos_num_to_process; ++timing_pos_num)
{
for (int view_num = proj_data_sptr->get_min_view_num();
view_num <= proj_data_sptr->get_max_view_num();
++view_num)
{

Viewgram<float> viewgram=proj_data_sptr->get_viewgram(view_num,segment_num,false,timing_pos_num);

//first adjust data

// KT 05/07/2000 made parameters.zero_seg0_end_planes int
if(segment_num==0 && zero_seg0_end_planes!=0)
{
viewgram[viewgram.get_min_axial_pos_num()].fill(0);
viewgram[viewgram.get_max_axial_pos_num()].fill(0);
}

truncate_rim(viewgram,rim_truncation_sino);

//now take totals
counts+=viewgram.sum();
}
}
}

return counts;

}

#endif

template <typename TargetT>
void
PoissonLogLikelihoodWithLinearModelForMeanAndProjData<TargetT>::add_subset_sensitivity(TargetT& sensitivity,
Expand Down

0 comments on commit 6224d74

Please sign in to comment.