STIR  6.2.0
Functions
SSRB.cxx File Reference

Main program for stir::SSRB. More...

#include "stir/ProjData.h"
#include "stir/shared_ptr.h"
#include "stir/SSRB.h"
#include <string>
#include <string.h>
#include "stir/ProjDataInterfile.h"

Functions

void classic_SSRB (int argc, char **argv)
 
void template_based_SSRB (int argc, char **argv)
 
int main (int argc, char **argv)
 

Detailed Description

Main program for stir::SSRB.

Author
Kris Thielemans & Robert Twyman
Usage:
SSRB [-t num_tangential_poss_to_trim] \
output_filename input_projdata_name [num_segments_to_combine \
[ num_views_to_combine [do_normalisation [max_in_segment_num_to_process ]]]]
SSRB --template template_projdata_filename output_filename input_projdata_name [do_normalisation]
Parameters
num_segments_to_combinehas to be odd. It is used as the number of segments in the original data to combine.
num_views_to_combinehas to be at least 1 (which is the default). It is used as the number of views in the original data to combine.
num_tangential_poss_to_trimhas to be smaller than the available number of tangential positions.
do_normalisationhas to be 1 (normalise the result, which is the default) or 0
max_in_segment_num_to_processdefaults to all segments
template_projdata_filename,indicatedby the –template option, a template projection data which SSRB will map to.
Example:
SSRB out in.hs 3 2
If in.hs is a file without axial compression (span=1) nor mashing, then the output would correspond to a span=3 file with mashing factor 2, and would be normalised (at least as far as SSRB concerns). num_segments_to_combine=3 results in ring differences -1,0,1 to be combined all into segment 0, etc.
See also
stir::SSRB(const std::string& output_filename, const stir::ProjData& in_projdata, const int num_segments_to_combine, const int num_views_to_combine, const int num_tang_poss_to_trim, const bool do_normalisation, const int max_in_segment_num_to_process ) for info on parameters and restrictions.
SSRB --template template_sino.hs out in.hs 1
This use SSRB to convert in.hs into the shape of template_sino.hs and save the result as interile out.