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

Image histograms. More...

#include "rwimg.h"
#include "histogram.h"
#include "ps_plot.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

Image histograms.

Author
Bernard Heymann
Date
Created: 19990321
Modified: 20221004

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ use

const char* use[]
Initial value:
= {
" ",
"Usage: bhisto [options] input.img output.img",
"--------------------------------------------",
"Calculates the histogram of an image and associated statistics.",
" ",
"Actions:",
"-bins 256 Calculate histogram over a number of bins.",
"-counts Calculate a counts histogram and adjust the image.",
"-fit gauss,2 Do a fit to the histogram (gaussian, poisson, counts).",
" Second argument indicates number of gaussians.",
" Counts option will convert the image to discrete counts.",
"-otsu Calculate the Otsu inter-set variance.",
"-multi 5 Calculate multiple thresholds for the given number of clusters.",
"-percentiles Calculate the percentiles for an image.",
" ",
"Parameters:",
"-verbose 7 Verbosity of output.",
"-datatype u Force writing of a new data type.",
"-select 1 Select an image (default all).",
"-sampling 2,3.5,1 Sampling (angstrom/voxel, a single value sets all three).",
" ",
"Input:",
"-Histogram histo.ps Postscript input file name (instead of image).",
" ",
"Output:",
"-Postscript histo.ps Postscript output file name.",
" ",
NULL
}

◆ verbose

int verbose
extern