19 float FindCluster(
int &cnt,
float *sum, uint32_t x, uint32_t y,
20 uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1)
const;
22 void GetMinMax(
const int offset, uint8_t *min, uint8_t *max)
const;
23 int GetMeanPosition(
const int x,
const int y,
const int boxx,
const int boxy)
const;
24 int GetMeanPosition(
const int x,
const int y,
const int boxx,
const int boxy,
25 float &mx,
float &my,
unsigned int &sum)
const;
28 const int boxx,
const int boxy)
const;
30 const int boxx,
const int boxy,
float &mx,
float &my,
31 unsigned int &sum)
const;
33 void DrawBox(
const int x1,
const int y1,
34 const int x2,
const int y2,
38 FilterLed(uint8_t *img,
int w,
int h,
double cut=2.5) : fImg(img),
39 fW(w), fH(h), fBoxX(w), fBoxY(h), fCut(cut)
43 FilterLed(uint8_t *img,
int w,
int h,
int boxx,
int boxy,
double cut=2.5) : fImg(img),
44 fW(w), fH(h), fBoxX(boxx), fBoxY(boxy), fCut(cut)
49 void SetBox(
int box) { fBoxX = fBoxY = box; }
50 void SetBox(
int boxx,
int boxy) { fBoxX = boxx; fBoxY = boxy; }
51 void SetCut(
float cut) { fCut = cut; }
52 void FindStar(std::vector<Led> &leds,
int xc,
int yc,
bool circle=
false)
const;
54 void Execute(std::vector<Led> &leds,
int xc,
int yc,
double &bright)
const;
55 void Execute(std::vector<Led> &leds,
int xc,
int yc)
const;
62 void DrawCircle(
float cx,
float cy,
float r, uint8_t col=0x40)
const;
66 void DrawHexagon(
float cx,
float cy,
float r, uint8_t col=0x40)
const;
FilterLed(uint8_t *img, int w, int h, int boxx, int boxy, double cut=2.5)
void SetBox(int boxx, int boxy)
void Execute(std::vector< Led > &leds) const
int GetMeanPositionBox(const int x, const int y, const int boxx, const int boxy) const
void MarkPoint(const Led &led) const
void DrawCircle(float r, uint8_t col=0x40) const
void Execute(std::vector< Led > &leds, int xc, int yc, double &bright) const
void DrawBox(const int x1, const int y1, const int x2, const int y2, const int col) const
float FindCluster(int &cnt, float *sum, uint32_t x, uint32_t y, uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1) const
FilterLed(uint8_t *img, int w, int h, double cut=2.5)
void DrawHexagon(float cx, float cy, float r, uint8_t col=0x40) const
void GetMinMax(const int offset, uint8_t *min, uint8_t *max) const
void DrawCircle(float cx, float cy, float r, uint8_t col=0x40) const
void FindStar(std::vector< Led > &leds, int xc, int yc, bool circle=false) const
int GetMeanPosition(const int x, const int y, const int boxx, const int boxy) const