Bsoft  1.9
Bernard's software package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
img_random.h
Go to the documentation of this file.
1 
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <ctype.h>
13 #include <unistd.h>
14 #include <math.h>
15 #include <time.h>
16 #include "rwimg.h"
17 
18 // Function prototypes
19 Bimage* img_random_uniform(int nimg, Vector3<int> size, double min, double max);
20 Bimage* img_random_gaussian(int nimg, Vector3<int> size, double avg, double std);
21 Bimage* img_random_poisson(int nimg, Vector3<int> size, double avg);
22 Bimage* img_random_logistical(int nimg, Vector3<int> size, double avg, double std);
23 Bimage* img_spectral_noise(int nimg, Vector3<int> size, double alpha);
24 int img_add_gaussian_noise(Bimage* p, double snr);
Bimage * img_random_gaussian(int nimg, Vector3< int > size, double avg, double std)
Generates an image with a gaussian random distribution of densities.
Definition: img_random.cpp:80
Bimage * img_random_logistical(int nimg, Vector3< int > size, double avg, double std)
Generates an image with a gaussian random distribution of densities.
Definition: img_random.cpp:175
General image parameter class.
Definition: Bimage.h:152
int img_add_poisson_noise(Bimage *p)
Adds poisson random noise to an image.
Definition: img_random.cpp:324
int img_add_gaussian_noise(Bimage *p, double snr)
Adds gaussian random noise to an image.
Definition: img_random.cpp:284
Bimage * img_random_poisson(int nimg, Vector3< int > size, double avg)
Generates an image with a poisson random distribution of densities.
Definition: img_random.cpp:127
Bimage * img_spectral_noise(int nimg, Vector3< int > size, double alpha)
Generates a noise map with a defined spectral decay.
Definition: img_random.cpp:210
Bimage * img_random_uniform(int nimg, Vector3< int > size, double min, double max)
Generates an image with a uniform random distribution of densities.
Definition: img_random.cpp:38
Header file for 2D and 3D image I/O.