USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::CentroidApolloPan Class Reference

Selection class derived from the Pure Virtual Parent Class for all Selection classes. More...

#include <CentroidApolloPan.h>

Inheritance diagram for Isis::CentroidApolloPan:
Inheritance graph
Collaboration diagram for Isis::CentroidApolloPan:
Collaboration graph

Public Member Functions

 CentroidApolloPan (double pixel_size_microns)
bool setPixelSize (double microns)
int elipticalReduction (Chip *selectionChip, double percent_selected, double play, int patience_limit)
int selectAdaptive (Chip *inputChip, Chip *selectionChip)
int select (Chip *inputChip, Chip *selectionChip)
int setDNRange (double minimumDN, double maximumDN)
double getMinDN ()
double getMaxDN ()
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)

Private Attributes

double m_pixelSize

Detailed Description

Selection class derived from the Pure Virtual Parent Class for all Selection classes.

Description coming soon

Author
2011-10-22 Orrin Thomas
History:
2011-10-22 Orrin Thomas - Original version

Definition at line 41 of file CentroidApolloPan.h.

Member Function Documentation

int Isis::CentroidApolloPan::elipticalReduction ( Chip selectionChip,
double  percent_selected,
double  play,
int  patience_limit 
)
virtual

printf("Debug: a: %lf b: %lf majorAxis: %lf %lf\n",ellBest.semiMajor,ellBest.semiMinor,ellBest.majorAxis[0],ellBest.majorAxis[1]);

Reimplemented from Isis::Selection.

Definition at line 130 of file CentroidApolloPan.cpp.

References Isis::Chip::GetValue(), Isis::Chip::Lines(), Isis::Chip::Samples(), and Isis::Chip::SetValue().


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