-
Notifications
You must be signed in to change notification settings - Fork 0
/
DIPs.h
36 lines (24 loc) · 779 Bytes
/
DIPs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "Constants.h"
#include "Image.h"
#include <math.h>
#ifndef DIPs_H
#define DIPs_H
/* change color image to black & white */
void BlackNWhite(IMAGE *image);
/* flip image vertically */
void VFlip(IMAGE *image);
/* mirror image horizontally */
void HMirror(IMAGE *image);
/* color filter */
void ColorFilter(IMAGE *image, int target_r, int target_g, int target_b, int threshold, int replace_r, int replace_g, int replace_b) ;
/* sharpen the image */
void Shuffle(IMAGE *image);
/* edge detection */
void Edge(IMAGE *image);
/* add border */
void AddBorder(IMAGE *image, char color[SLEN], int border_width);
/*Resize*/
IMAGE *Resize(unsigned int percentage, IMAGE *image);
/*Rotate 90 degrees clockwise*/
IMAGE *Rotate(IMAGE *image);
#endif