| |
| |
|
|
| |
| |
| |
| #if !defined(AFX_BLURMATRIX_H__8298C171_0035_11D6_B94F_0040F674BE6A__INCLUDED_) |
| #define AFX_BLURMATRIX_H__8298C171_0035_11D6_B94F_0040F674BE6A__INCLUDED_ |
| |
| #if _MSC_VER > 1000 |
| #pragma once |
| #endif |
| |
| #include <vector> |
| |
| #include "SError.h" |
| #include "SDef.h" |
| |
| using namespace std; |
| |
| #define NBRS 10 |
| typedef vector<SXYD> BLURSECTION; |
| |
| class CBlurMatrix |
| { |
| public: |
| bool m_isSAC; |
| bool m_isRS; |
| vector<BLURSECTION> m_m[NBRS]; |
| |
| CBlurMatrix() : m_isSAC(false), m_isRS(false){}; |
| CBlurMatrix(const CBlurMatrix &m); |
| CBlurMatrix(const double d, const int nb, const bool isSAC, const bool isRS); |
| |
| virtual ~CBlurMatrix(); |
| |
| void createRandom(const double d, const int nb); |
| void createEqual(const double d, const int nb); |
| void addPath(vector<BLURSECTION>::iterator pBS); |
| void addPath(); |
| void print() const; |
| bool isIn(const vector<BLURSECTION> &m, const SXYD &xyd) const; |
| }; |
| |
| #endif |
| |