STIR  6.2.0
Functions
find_fwhm_in_image.cxx File Reference

List of FWHM and location of maximum in the image. More...

#include "stir/shared_ptr.h"
#include "stir/DiscretisedDensity.h"
#include "stir/DiscretisedDensityOnCartesianGrid.h"
#include "stir/find_fwhm_in_image.h"
#include "stir/IO/read_from_file.h"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <list>
#include <algorithm>
#include <string>

Functions

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

Detailed Description

List of FWHM and location of maximum in the image.

Author
Charalampos Tsoumpas
Kris Thielemans
Sanida Mustafovic
Usage:
find_fwhm_in_image filename [num_maxima] [level] [dimension] [nema]
Parameters
num_maximadefaults to 1
leveldefaults to 2 (half maximum)
dimensionfor point sources (default) set to 0 for line source along z, y, x -axis, set to: 1, 2, 3 respectively
NEMAdefaults to 1

If you have point sources, it prints the value of the [num_maxima] maximum point source with its location and the resolution at the three dimensions, sorting from the maximum to the minimum. If you have a line source, a text file is returned that it contains the maximum value at its one slice, which is sorted from the mimimum to maximum slice index, at the wanted direction, with its location and the resolution at the three dimensions. The resolution at the axis of the line is set to be 0. If given as [num_maxima] less than the total slices it returns the results for some slices by sampling with the same step the total slices of the wanted dimension. The [nema] parameter enables the oportunity of using the NEMA Standards Publication NU 2-2001. If it is set to 0 the function estimates the FWHM using 3D interpolation, for closer approximation.