-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathhelpers.h
More file actions
42 lines (30 loc) · 1.21 KB
/
helpers.h
File metadata and controls
42 lines (30 loc) · 1.21 KB
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
37
38
39
40
41
42
#ifndef HELPERS_H
#define HELPERS_H
#include <stdio.h>
#include <math.h>
#include "bmp.h"
// Convert image to grayscale
void grayscale(int height, int width, RGBTRIPLE image[height][width]);
// invert image
void invert(int height, int width, RGBTRIPLE image[height][width]);
// Convert image to sepia
void sepia(int height, int width, RGBTRIPLE image[height][width]);
// Reflect image horizontally
void reflect(int height, int width, RGBTRIPLE image[height][width]);
// Blur image
void blur(int height, int width, RGBTRIPLE image[height][width]);
//Threshold Filter(Black & White)
void threshold(int height, int width, RGBTRIPLE image[height][width]);
// *New: Edge Detection filter*
void detect_edges(int height, int width, RGBTRIPLE image[height][width]);
// Brightness adjustment filter
void brightness(int height, int width, RGBTRIPLE image[height][width], int value);
// Vignette filter
void vignette(int height, int width, RGBTRIPLE image[height][width]);
// Glow filter
void glow(int height, int width, RGBTRIPLE image[height][width]);
// Oil Paint filter
void oilpaint(int height, int width, RGBTRIPLE image[height][width]);
// Pixelate filter
void pixelate(int height, int width, RGBTRIPLE image[height][width]);
#endif