| 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_resize.h
Go to the documentation of this file.
1
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <ctype.h>
12 #include <math.h>
13 #include <time.h>
14
15 #include "rwimg.h"
16 #include "Vector3.h"
17
18 // Function prototypes
19 Bimage* img_resize(Bimage* p, Vector3<int> newsize, Vector3<int> translate,
20 int wrap, int fill_type, float fill);
21 Bimage* img_resize_to_next_power2(Bimage* p, int fill_type, float fill);
22 int img_shrink_wrap(Bimage* p, Vector3<int> newsize, Vector3<int> translate);
23 Bimage* img_pad(Bimage* p, int size, int fill_type, float fill);
24 Bimage* img_pad(Bimage* p, Vector3<int> size, int fill_type, float fill);
25
Vector3< int >
Bimage
General image parameter class.
Definition: Bimage.h:149
img_resize
Bimage * img_resize(Bimage *p, Vector3< int > newsize, Vector3< int > translate, int wrap, int fill_type, float fill)
Resizes without interpolation or rescaling.
Definition: img_resize.cpp:30
Vector3.h
Class for 3-value vectors.
img_resize_to_next_power2
Bimage * img_resize_to_next_power2(Bimage *p, int fill_type, float fill)
Resizes without interpolation or rescaling to the next power of 2.
Definition: img_resize.cpp:124
img_shrink_wrap
int img_shrink_wrap(Bimage *p, Vector3< int > newsize, Vector3< int > translate)
Shrinks an image to a new size with wrapping of the excluded edges.
Definition: img_resize.cpp:155
rwimg.h
Header file for 2D and 3D image I/O.
img_pad
Bimage * img_pad(Bimage *p, int size, int fill_type, float fill)
Pads an image to a new size with a given fill value.
Definition: img_resize.cpp:228