STIR  6.2.0
Functions
line_profiles_through_projdata.cxx File Reference

Extracting profiles from projection data. More...

#include "stir/Array.h"
#include "stir/Sinogram.h"
#include "stir/ProjData.h"
#include "stir/ProjDataInfo.h"
#include "stir/Bin.h"
#include <iostream>
#include <iomanip>
#include <fstream>

Functions

int main (int argc, char *argv[])
 

Detailed Description

Extracting profiles from projection data.

Author
Charalampos Tsoumpas
Kris Thielemans
Todo:
put the output profile name as a first argument after the command, to follow STIR conventions.
Usage:
line_profiles_through_projdata [proj_data_filename] [output_profile_filename] ax_min/max view_min/max tang_min/max
ax_min/max, view_min/max, tang_min/max:
These are the minimum and maximum values of the profile for the correspondig direction (axial - angular - tangential).
Return values
output_profile_filenameIs a prefix of two text file with postfix:
(a)_tang for tangential profiles.
(b)_view for profiles through views.
The output profile will represent the sum over all the line profiles through min/max for the directions and will produce:
Attention
Take special care of the min/max values of the direction that the profiles will be estimated. The should be the same.

This program extracts the profile of given input_projdata which should be on the center. The results is the same as if we first run ./extract_segments input_projdata.hs (by sinogram) and then run ./manip_image input_projdata.hs to extract the rows as the defaults.