Isis Developer Reference
|
Pure Virtual Parent Class for all Selection classes. More...
#include <Selection.h>
Public Member Functions | |
Selection () | |
virtual | ~Selection () |
virtual int | select (Chip *inputChip, Chip *selectionChip)=0 |
virtual int | elipticalReduction (Chip *selectionChip, double percent_selected, double play, int patience_limit) |
int | centerOfMass (Chip *selectionChip, double *sample, double *line) |
int | centerOfMassWeighted (Chip *inputChip, Chip *selectionChip, double *sample, double *line) |
bool | ellipseFrom5Pts (Ellipse *ell, double pts[5][2]) |
double | elipsePercentSelected (Chip *selectionChip, Ellipse *ell) |
std::vector< double > | minimumBoundingElipse (std::vector< std::vector< int > > pts, Ellipse *ell) |
bool | ellipseFromCubic (Ellipse *ell, double cubic[6]) |
bool | ellipseAxesAreaFromMatrix (Ellipse *ell) |
bool | bestFitEllipse (Ellipse *ell, std::vector< std::vector< int > > *pts, double play, unsigned int max_iter) |
bool | pointInEllipse (Ellipse *ell, double pt[2], double play) |
bool | ellipseInChip (Ellipse *ell, Chip *chip) |
bool | ellipseFromCenterAxesAngle (Ellipse *ell, double centerSample, double centerLine, double semiMajor, double semiMinor, double theta) |
void | selectionEdge (Chip *selectionChip, std::vector< std::vector< int > > *pts) |
Pure Virtual Parent Class for all Selection classes.
Create Selection object. Because this is a pure virtual class you can not create a Selection class directly.
Isis::Selection::Selection | ( | ) |
|
virtual |
bool Isis::Selection::bestFitEllipse | ( | Ellipse * | ell, |
std::vector< std::vector< int > > * | pts, | ||
double | play, | ||
unsigned int | max_iter ) |
References Isis::choleski_solve(), ellipseAxesAreaFromMatrix(), and Isis::isymp().
Referenced by Isis::CentroidApolloPan::elipticalReduction(), and elipticalReduction().
int Isis::Selection::centerOfMass | ( | Chip * | selectionChip, |
double * | sample, | ||
double * | line ) |
int Isis::Selection::centerOfMassWeighted | ( | Chip * | inputChip, |
Chip * | selectionChip, | ||
double * | sample, | ||
double * | line ) |
References pointInEllipse().
Referenced by Isis::CentroidApolloPan::elipticalReduction(), and elipticalReduction().
|
virtual |
Reimplemented in Isis::CentroidApolloPan.
References Ellipse::area, bestFitEllipse(), elipsePercentSelected(), ellipseFrom5Pts(), ellipseInChip(), pointInEllipse(), and selectionEdge().
bool Isis::Selection::ellipseAxesAreaFromMatrix | ( | Ellipse * | ell | ) |
Referenced by bestFitEllipse(), ellipseFromCubic(), and minimumBoundingElipse().
bool Isis::Selection::ellipseFrom5Pts | ( | Ellipse * | ell, |
double | pts[5][2] ) |
References ellipseFromCubic().
Referenced by elipticalReduction().
bool Isis::Selection::ellipseFromCenterAxesAngle | ( | Ellipse * | ell, |
double | centerSample, | ||
double | centerLine, | ||
double | semiMajor, | ||
double | semiMinor, | ||
double | theta ) |
Referenced by Isis::CentroidApolloPan::elipticalReduction().
bool Isis::Selection::ellipseFromCubic | ( | Ellipse * | ell, |
double | cubic[6] ) |
References ellipseAxesAreaFromMatrix().
Referenced by ellipseFrom5Pts().
References Isis::Chip::Lines(), and Isis::Chip::Samples().
Referenced by Isis::CentroidApolloPan::elipticalReduction(), and elipticalReduction().
std::vector< double > Isis::Selection::minimumBoundingElipse | ( | std::vector< std::vector< int > > | pts, |
Ellipse * | ell ) |
References ellipseAxesAreaFromMatrix().
bool Isis::Selection::pointInEllipse | ( | Ellipse * | ell, |
double | pt[2], | ||
double | play ) |
Referenced by elipsePercentSelected(), Isis::CentroidApolloPan::elipticalReduction(), and elipticalReduction().
Implemented in Isis::Centroid.
void Isis::Selection::selectionEdge | ( | Chip * | selectionChip, |
std::vector< std::vector< int > > * | pts ) |
Referenced by Isis::CentroidApolloPan::elipticalReduction(), and elipticalReduction().