equal
deleted
inserted
replaced
|
1 #ifndef __BITMAP_H__ |
|
2 #define __BITMAP_H__ |
|
3 |
|
4 #include "Histogram.h" |
|
5 #include <vector> |
|
6 |
|
7 using namespace std; |
|
8 |
|
9 class Bitmap |
|
10 { |
|
11 int width; |
|
12 int height; |
|
13 vector<int> *PointsPerLine; |
|
14 vector<int> *PointsPerColumn; |
|
15 |
|
16 public: |
|
17 Bitmap(int w, int h); |
|
18 ~Bitmap(); |
|
19 |
|
20 void setToZero(); |
|
21 |
|
22 int get_width() const { return width; }; |
|
23 int get_height() const { return height;}; |
|
24 |
|
25 int points_per_row(int row); |
|
26 int points_per_column(int column); |
|
27 void calcHistogram(Histogram* &myhist); |
|
28 |
|
29 char **pixels; |
|
30 }; |
|
31 |
|
32 #endif |