Skip to content

Commit

Permalink
ENH: add flag in rtkosem application to store the normalization images
Browse files Browse the repository at this point in the history
Add flag to rtkosem application to choose to store or not the
normalization images. Storing the normalization images can increase the
speed of the reconstruction but could also create memory issues if the
size of the normalization images is too big.
  • Loading branch information
arobert01 committed Nov 24, 2023
1 parent 0f218d3 commit efdc4e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion applications/rtkosem/rtkosem.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ main(int argc, char * argv[])

osem->SetNumberOfIterations(args_info.niterations_arg);
osem->SetNumberOfProjectionsPerSubset(args_info.nprojpersubset_arg);

osem->SetStoreNormalizationImages(!args_info.nostorenormalizationimages_flag);
REPORT_ITERATIONS(osem, rtk::OSEMConeBeamReconstructionFilter<OutputImageType>, OutputImageType)

// Write
Expand Down
1 change: 1 addition & 0 deletions applications/rtkosem/rtkosem.ggo
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ option "niterations" n "Number of iterations" i
option "input" i "Input volume" string no
option "nprojpersubset" - "Number of projections processed between each update of the reconstructed volume (several for OSEM, all for MLEM)" int no default="1"
option "betaregularization" - "Hyperparameter for the regularization" float no default="0"
option "nostorenormalizationimages" - "Do not store the normalization images during the reconstruction" flag off

0 comments on commit efdc4e1

Please sign in to comment.