FACT++  1.0
FilterLed Class Reference

#include <FilterLed.h>

Public Member Functions

 FilterLed (uint8_t *img, int w, int h, double cut=2.5)
 
 FilterLed (uint8_t *img, int w, int h, int boxx, int boxy, double cut=2.5)
 
virtual ~FilterLed ()
 
void SetBox (int box)
 
void SetBox (int boxx, int boxy)
 
void SetCut (float cut)
 
void FindStar (std::vector< Led > &leds, int xc, int yc, bool circle=false) const
 
void Execute (std::vector< Led > &leds, int xc, int yc, double &bright) const
 
void Execute (std::vector< Led > &leds, int xc, int yc) const
 
void Execute (std::vector< Led > &leds) const
 
void MarkPoint (const Led &led) const
 
void MarkPoint (float x, float y, float mag) const
 
void Stretch () const
 
void DrawCircle (float cx, float cy, float r, uint8_t col=0x40) const
 
void DrawCircle (float r, uint8_t col=0x40) const
 
void DrawCircle (const Ring &c, uint8_t col=0x40) const
 
void DrawCircle (const Ring &c, double r, uint8_t col) const
 
void DrawHexagon (float cx, float cy, float r, uint8_t col=0x40) const
 
void DrawHexagon (const Ring &c, double r, uint8_t col) const
 

Private Member Functions

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
 
void GetMinMax (const int offset, uint8_t *min, uint8_t *max) const
 
int GetMeanPosition (const int x, const int y, const int boxx, const int boxy) const
 
int GetMeanPosition (const int x, const int y, const int boxx, const int boxy, float &mx, float &my, unsigned int &sum) const
 
int GetMeanPositionBox (const int x, const int y, const int boxx, const int boxy) const
 
int GetMeanPositionBox (const int x, const int y, const int boxx, const int boxy, float &mx, float &my, unsigned int &sum) const
 
void DrawBox (const int x1, const int y1, const int x2, const int y2, const int col) const
 

Private Attributes

uint8_t * fImg
 
int fW
 
int fH
 
int fBoxX
 
int fBoxY
 
float fCut
 

Detailed Description

Definition at line 10 of file FilterLed.h.


The documentation for this class was generated from the following files: