| Bsoft 1.9 Bernard's software package

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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);
25 int img_add_poisson_noise(Bimage* p);
img_random_gaussian
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
Vector3< int >
std
img_random_logistical
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
Bimage
General image parameter class.
Definition: Bimage.h:152
img_add_poisson_noise
int img_add_poisson_noise(Bimage *p)
Adds poisson random noise to an image.
Definition: img_random.cpp:324
img_add_gaussian_noise
int img_add_gaussian_noise(Bimage *p, double snr)
Adds gaussian random noise to an image.
Definition: img_random.cpp:284
img_random_poisson
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
img_spectral_noise
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
img_random_uniform
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
rwimg.h
Header file for 2D and 3D image I/O.