-
Notifications
You must be signed in to change notification settings - Fork 1
/
Histogram4.h
45 lines (42 loc) · 1012 Bytes
/
Histogram4.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
37
38
39
40
41
42
43
44
45
#ifndef Histogram4_h
#define Histogram4_h
#include <fstream>
#include <vector>
#include <cmath>
#include <vector>
#include <algorithm>
#include <stack>
#include <string>
// #include <array>
#include "Pixel.h"
#include "Color.h"
#include "Image.h"
#include "CompositeImage.h"
using namespace std;
class Histogram4{
private:
Image imga;
vector<Pixel*> hist_data[256];
vector<int > hist_count;
vector<int> minimas;
Color *c_arr[7];
public:
Histogram4(Image &im);
~Histogram4();
// Histogram4(array<vector<Pixel*> > &hist_data,
// vector<int> &hist_count);
Image get_img(){
return imga;
}
void task4(Image &im);
float task6(Image &img);
vector<int> return_minimas();
float medianThreshold(Image &img);
void get_brightness(Image &img);
int get_minima(Image &img);
void color_segments(Image &img);
void take_reflection(Image &img);
void write(Image &im);
friend ostream& operator << (ostream& os , Histogram4 h);
};
#endif