Bsoft  1.9
Bernard's software package
 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 
General image parameter class.
Definition: Bimage.h:149
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
Class for 3-value vectors.
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
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
Header file for 2D and 3D image I/O.
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