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

Calculating image gradients. More...

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

Functions

Bimageimg_aniso_average (Bimage *p, long iter, long ksize, double w)
 
int main (int argc, char **argv)
 

Variables

int verbose
 
const char * use []
 

Detailed Description

Calculating image gradients.

Author
Bernard Heymann
Date
Created: 20201224
Modified: 20210302

Function Documentation

◆ img_aniso_average()

Bimage * img_aniso_average ( Bimage p,
long  iter,
long  ksize,
double  w 
)

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ use

const char* use[]
Initial value:
= {
" ",
"Usage: bgradient [options] input.img output.img",
"-----------------------------------------------",
"Calculates image gradients.",
" ",
"Actions:",
"-gaussian 2.4,5.1,20.4 Anisotropic gaussian filter (one value sets all).",
"-gradient 3x3 Gradient type: cd, 3x3, freq.",
"-magnitude Convert gradient vectors to lengths.",
"-anisotropic 10,0.5 Anisotropic gradient smoothing: iterations and weight.",
" ",
"Parameters:",
"-verbose 1 Verbosity of output.",
"-datatype u Force writing of a new data type.",
"-sampling 1.5,1.5,1.5 Sampling (A/pixel; a single value can be given).",
"-origin 110,50,44 Origin for the mask (default from input image).",
" ",
NULL
}

◆ verbose

int verbose
extern