51 virtual int elipticalReduction(
Chip *selectionChip,
double percent_selected,
double play,
int patience_limit);
63 bool bestFitEllipse(
Ellipse *ell, std::vector < std::vector<int> > *pts,
double play,
unsigned int max_iter);
struct Ellipse Ellipse
This is free and unencumbered software released into the public domain.
A small chip of data used for pattern matching.
Definition: Chip.h:86
Pure Virtual Parent Class for all Selection classes.
Definition: Selection.h:43
virtual int select(Chip *inputChip, Chip *selectionChip)=0
bool bestFitEllipse(Ellipse *ell, std::vector< std::vector< int > > *pts, double play, unsigned int max_iter)
Definition: Selection.cpp:418
virtual int elipticalReduction(Chip *selectionChip, double percent_selected, double play, int patience_limit)
Definition: Selection.cpp:34
bool ellipseFromCubic(Ellipse *ell, double cubic[6])
Definition: Selection.cpp:387
virtual ~Selection()
Definition: Selection.cpp:30
int centerOfMass(Chip *selectionChip, double *sample, double *line)
Definition: Selection.cpp:166
bool ellipseFromCenterAxesAngle(Ellipse *ell, double centerSample, double centerLine, double semiMajor, double semiMinor, double theta)
Definition: Selection.cpp:755
void selectionEdge(Chip *selectionChip, std::vector< std::vector< int > > *pts)
Definition: Selection.cpp:555
bool ellipseFrom5Pts(Ellipse *ell, double pts[5][2])
Definition: Selection.cpp:333
bool ellipseInChip(Ellipse *ell, Chip *chip)
Definition: Selection.cpp:634
std::vector< double > minimumBoundingElipse(std::vector< std::vector< int > > pts, Ellipse *ell)
Definition: Selection.cpp:230
bool pointInEllipse(Ellipse *ell, double pt[2], double play)
Definition: Selection.cpp:732
bool ellipseAxesAreaFromMatrix(Ellipse *ell)
Definition: Selection.cpp:583
Selection()
Definition: Selection.cpp:29
int centerOfMassWeighted(Chip *inputChip, Chip *selectionChip, double *sample, double *line)
Definition: Selection.cpp:189
double elipsePercentSelected(Chip *selectionChip, Ellipse *ell)
Definition: Selection.cpp:294
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
This is free and unencumbered software released into the public domain.
Definition: Selection.h:14
double A[3]
Definition: Selection.h:15
double minorAxis[2]
Definition: Selection.h:19
double semiMinor
Definition: Selection.h:17
double semiMajor
Definition: Selection.h:16
double area
Definition: Selection.h:21
double cen[2]
Definition: Selection.h:20
double majorAxis[2]
Definition: Selection.h:18