| 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_rescale.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 int img_rescale(Bimage* p, double scale, double shift);
20 int img_rescale_to_min_max(Bimage* p, double min, double max);
21 int img_rescale_to_avg_std(Bimage* p, double avg, double std);
22 int img_truncate(Bimage* p, double min, double max, double setmin, double setmax);
23 int img_truncate_to_min_max(Bimage* p, double min, double max);
24 int img_truncate_to_avg(Bimage* p, double min, double max);
25 int img_truncate_to_background(Bimage* p, double min, double max);
26 int img_limit_levels(Bimage* p, int nlevels);
img_rescale_to_avg_std
int img_rescale_to_avg_std(Bimage *p, double avg, double std)
Rescales the image data to a given average and standard deviation.
Definition: img_rescale.cpp:113
img_truncate
int img_truncate(Bimage *p, double min, double max, double setmin, double setmax)
Truncates image data to a given minimum and maximum.
Definition: img_rescale.cpp:165
img_limit_levels
int img_limit_levels(Bimage *p, int nlevels)
Converts a full gray scale image to a limited level image.
Definition: img_rescale.cpp:314
img_truncate_to_background
int img_truncate_to_background(Bimage *p, double min, double max)
Sets voxels in image data exceeding a given minimum and maximum to the image background.
Definition: img_rescale.cpp:258
std
Bimage
General image parameter class.
Definition: Bimage.h:149
img_rescale
int img_rescale(Bimage *p, double scale, double shift)
Rescales the image data to a given minimum and maximum.
Definition: img_rescale.cpp:31
img_truncate_to_min_max
int img_truncate_to_min_max(Bimage *p, double min, double max)
Truncates image data to a given minimum and maximum.
Definition: img_rescale.cpp:220
rwimg.h
Header file for 2D and 3D image I/O.
img_rescale_to_min_max
int img_rescale_to_min_max(Bimage *p, double min, double max)
Rescales the image data to a given minimum and maximum.
Definition: img_rescale.cpp:79
img_truncate_to_avg
int img_truncate_to_avg(Bimage *p, double min, double max)
Sets voxels in image data exceeding a given minimum and maximum to the average.
Definition: img_rescale.cpp:239