Bsoft 2.1.4
Bernard's software package
bar.cpp File Reference

Program to do simple arithmetic on images. More...

#include "rwimg.h"
#include "utilities.h"
#include "options.h"
#include "timer.h"

Functions

int main (int argc, char **argv)
 

Variables

int verbose
 
const char * use []
 

Detailed Description

Program to do simple arithmetic on images.

Author
Bernard Heymann
Date
Created: 20040727
Modified: 20220209

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ use

const char* use[]
Initial value:
= {
" ",
"Usage: bar [options] input.img output.img",
"-----------------------------------------",
"Does simple arithmetic on images.",
"Operations are done in the order given on the command line.",
" ",
"Actions:",
"-invert Invert the image values.",
"-absolute Convert to absolute values.",
"-add -5.78 Add a constant to each voxel.",
"-multiply 6.123 Multiply each voxel with a constant.",
"-power 0.75 Raise to the power (must be positive).",
"-phaseadd 2.3 Add an angle to a phase image.",
"-sine Calculate the sine of a phase image.",
"-cosine Calculate the cosine of a phase image.",
"-tangent Calculate the tangent of a phase image.",
"-arcsine Calculate the arcsine of an image.",
"-arccosine Calculate the arccosine of an image.",
"-arctangent Calculate the arctangent of an image.",
" ",
"Parameters:",
"-verbose 7 Verbosity of output.",
"-datatype u Force writing of a new data type.",
" ",
NULL
}

◆ verbose

int verbose
extern