forked from satu0king/ImageProcessing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImage_64.h
More file actions
executable file
·24 lines (19 loc) · 776 Bytes
/
Image_64.h
File metadata and controls
executable file
·24 lines (19 loc) · 776 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
#ifndef Image_64_H_
#define Image_64_H_
#include <vector>
#include "Image.h"
//structure to hold the index values
struct Index_t{
int _x,_y;
};
class Image_64 : public Image {
public:
Image_64(char const *fileName); // Reads the Image from a file
Image_64(const Image &); // Copy constructor
bool is_minima(int i,int j); //calculates the pixels with min. blue value in the 8-neighbourhood
//I have considered partial neighbourhoods too
std::vector<Index_t>& min_pix_arr(); //returns all the minimum places in the image
Image_64 image_24(std::vector<Index_t> &t); //colors the 24-neighbourhood minimum points as white and all other as black
Image_64 gaussian_filter(std::vector<Index_t> &l); //applies the gaussian filter
};
#endif