7 const double MIN_RADIUS = 1.0;
47 DllExport
CCell(
void);
64 DllExport
CCell(
double R);
84 DllExport
void clear(
void);
113 DllExport
int getIDX(
int x,
int y);
137 DllExport CvScalar
getVal(
int idx);
140 DllExport Mat
getLUT(
void) {
return m_LUT; }
141 DllExport
void setLUT(Mat &LUT) { LUT.copyTo(m_LUT); }
145 int calculate_LUT(
void);
146 int calculate_nCells(
void);
147 int calculate_cellData(
void);
149 bool ifInsideCell(CvPoint2D64f x, CvPoint2D64f C)
const;
150 static CvPoint2D64f getBoundaryPoint(CvPoint2D64f C,
int i,
double R);
154 static Point idx2h(
int idx,
double R, CvSize imgSize);
155 inline int h2idx(Point c)
const;
156 static CvPoint2D64f idx2d(
int idx,
double R, CvSize imgSize);
157 inline int d2idx(CvPoint2D64f C);
159 inline Point d2h(CvPoint2D64f C)
const;
176 const CCell & operator= (
const CCell & rhs) {
return *
this; }
int N
Number of hexagons in the image.
int getNeighbourIDX(int idx, int i)
Returns the neighbouring cell index.
cell_int_app
Cell interpolation approach.
void setRadius(double R)
(Re-) sets the hexagon outer radius
CvScalar getVal(int idx)
Returns the color of the specified cell.
double r
Hexagon inner radius.
void setInterpolationApproach(cell_int_app cellIntApp)
(Re-) sets the interpolation approach for cell color generation
double R
Hexagon outer radius.
int * getNeighbourhood(int idx)
Returns all 6 neighbouring cell indexs.
int getIDX(int x, int y)
Returns the cell index.
cell_params getInfo(void)
Returns the cell parameters.
double S
Hexagon area in pixels.
Majority voting approach.
void setImage(Mat &img)
(Re-) sets the image
CCell(void)
Default constuctor.
Cell parameters structure.
void clear(void)
Resets the class by releasing memory and setting the class variable by default.