STIR  6.2.0
Functions | Variables
list_image_values.cxx File Reference

Utility to extract image values along profiles (or another box-shape) More...

#include "stir/DiscretisedDensity.h"
#include "stir/IO/read_from_file.h"
#include <fstream>
#include <iomanip>

Functions

void print_usage_and_exit ()
 
int main (int argc, const char *argv[])
 

Variables

const char * prog_name
 

Detailed Description

Utility to extract image values along profiles (or another box-shape)

Author
Sanida Mustafovic
Kris Thielemans
Usage
list_image_values [--LPS-output] [--csv] [--no-title-row] output_file_name input_image \\
min_plane max_plane min_col max_col min_row max_row
Indices need to be in the STIR convention (plane starts from 0, col,row are centred around 0)

Writes 4 columns to file, normally "plane row column value", unless –LPS-output is on, in which case it writes "L P S value".

Output is separated by spaces, unless –csv is on, in which case commas are used.