USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::Centroid Class Reference

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

#include <Centroid.h>

Inheritance diagram for Isis::Centroid:
Inheritance graph
[legend]
Collaboration diagram for Isis::Centroid:
Collaboration graph
[legend]

List of all members.

Public Member Functions

int select (Chip *inputChip, Chip *selectionChip)
int setDNRange (double minimumDN, double maximumDN)
double getMinDN ()
double getMaxDN ()
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)

Private Attributes

double m_maxDN
double m_minDN

Detailed Description

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

Description coming soon

Author:
2011-10-12 Orrin Thomas

For internal use only.

History:
2011-10-12 Orrin Thomas - Original version
History:
2012-02-14 Orrin Thomas - updated to Centroid::select(..) to start the floodfill algorithim at [Chip::p_chipSample, Chip::p_chipLine]. Thus, the starting pixel of the floodfill/centroid is set by calling the Chip::SetChipPosition() before Centroid::select.

Definition at line 43 of file Centroid.h.


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