forked from satu0king/ImageProcessing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpecialImage.h
More file actions
31 lines (25 loc) · 959 Bytes
/
SpecialImage.h
File metadata and controls
31 lines (25 loc) · 959 Bytes
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
#ifndef SpecialImage_H_
#define SpecialImage_H_
#include <iostream>
#include <vector>
using namespace std;
#include "Image.h"
#include "Pixel.h"
class SpecialImage : public Image {
public:
SpecialImage(char const *fileName); // Reads the Image from a file
SpecialImage(Image const &I1, Image const &I2, float alpha); // Composition
SpecialImage(const Image &); // Copy constructor
// Basic constructor, all pixels initialzed to 0
SpecialImage(unsigned int width, unsigned int height, int maxColor = 255);
// Basic constructor, all pixels initialzed to color c
SpecialImage(unsigned int width, unsigned int height, Color c,
int maxColor = 255);
SpecialImage invert();
SpecialImage reflectHorizontal();
SpecialImage reflectVertical();
SpecialImage binarize(int threshold, Color low = Color(0, 0, 0),
Color high = Color(255, 255, 255));
// SpecialImage applyMask(const Image &mask);
};
#endif