forked from Kaylians/Implementacion_HWFC_C_PlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpattern.h
32 lines (27 loc) · 938 Bytes
/
pattern.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
#ifndef PATTERN_H
#define PATTERN_H
#include <iostream>
#include <vector>
#include "Pixel.h"
class Pattern {
public:
int id;
int N;
int weight;
bool pattern = true;
std::vector<Pixel> pixeles;
std::vector<int> pixelesCoo;
std::vector<int> coordinate;
// Constructor
Pattern(int id, int N);
// Métodos de la clase
bool comparePixelPattern(const std::vector<Pixel>& otherPixeles);
bool compareCooPattern(const std::vector<int>& otherPixeles);
std::vector<Pixel> rotatePattern(const std::vector<Pixel>& Pattern);
std::vector<int> rotatePatternCoo(const std::vector<int>& Pattern);
std::vector<Pixel> mirrorPattern(const std::vector<Pixel>& Pattern);
std::vector<int> mirrorPatternCoo(const std::vector<int>& Pattern);
void addPixelVector(std::vector<Pixel> newPixeles);
void addPixelCooVector(std::vector<int> newPixeles);
};
#endif