Isis Developer Reference
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
Collaboration diagram for Isis::Centroid:
Collaboration graph

Public Member Functions

 Centroid ()
 
virtual ~Centroid ()
 
int select (Chip *inputChip, Chip *selectionChip)
 Given a range of DN this function creates a biniary chip for all continuous pixels that have the DN within the specified range using the center pixel of the chip as the seed value. More...
 
int setDNRange (double minimumDN, double maximumDN)
 Set the range of the DNs. More...
 
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)
 

Detailed Description

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

Description coming soon

Author
2011-10-12 Orrin Thomas

Constructor & Destructor Documentation

◆ Centroid()

Isis::Centroid::Centroid ( )

◆ ~Centroid()

Isis::Centroid::~Centroid ( )
virtual

Member Function Documentation

◆ bestFitEllipse()

bool Isis::Selection::bestFitEllipse ( Ellipse ell,
std::vector< std::vector< int > > *  pts,
double  play,
unsigned int  max_iter 
)
inherited

◆ centerOfMass()

int Isis::Selection::centerOfMass ( Chip selectionChip,
double *  sample,
double *  line 
)
inherited

◆ centerOfMassWeighted()

int Isis::Selection::centerOfMassWeighted ( Chip inputChip,
Chip selectionChip,
double *  sample,
double *  line 
)
inherited

◆ elipsePercentSelected()

double Isis::Selection::elipsePercentSelected ( Chip selectionChip,
Ellipse ell 
)
inherited

◆ elipticalReduction()

int Isis::Selection::elipticalReduction ( Chip selectionChip,
double  percent_selected,
double  play,
int  patience_limit 
)
virtualinherited

◆ ellipseAxesAreaFromMatrix()

bool Isis::Selection::ellipseAxesAreaFromMatrix ( Ellipse ell)
inherited

◆ ellipseFrom5Pts()

bool Isis::Selection::ellipseFrom5Pts ( Ellipse ell,
double  pts[5][2] 
)
inherited

◆ ellipseFromCenterAxesAngle()

bool Isis::Selection::ellipseFromCenterAxesAngle ( Ellipse ell,
double  centerSample,
double  centerLine,
double  semiMajor,
double  semiMinor,
double  theta 
)
inherited

◆ ellipseFromCubic()

bool Isis::Selection::ellipseFromCubic ( Ellipse ell,
double  cubic[6] 
)
inherited

References Ellipse::A, and Ellipse::cen.

◆ ellipseInChip()

bool Isis::Selection::ellipseInChip ( Ellipse ell,
Chip chip 
)
inherited

◆ getMaxDN()

double Isis::Centroid::getMaxDN ( )
Returns
(double) The maximum DN value of the range

◆ getMinDN()

double Isis::Centroid::getMinDN ( )
Returns
(double) The minimum DN value of the range

◆ minimumBoundingElipse()

std::vector< double > Isis::Selection::minimumBoundingElipse ( std::vector< std::vector< int > >  pts,
Ellipse ell 
)
inherited

References Ellipse::A, and Ellipse::cen.

◆ pointInEllipse()

bool Isis::Selection::pointInEllipse ( Ellipse ell,
double  pt[2],
double  play 
)
inherited

References Ellipse::A, and Ellipse::cen.

◆ select()

int Isis::Centroid::select ( Chip inputChip,
Chip selectionChip 
)
virtual

Given a range of DN this function creates a biniary chip for all continuous pixels that have the DN within the specified range using the center pixel of the chip as the seed value.

Parameters
inputChipPointer to the input chip
selectionChipPointer to the binary chip of selected and unselected pixels
Returns
the number 1 if successful

Implements Isis::Selection.

References Isis::Chip::ChipLine(), Isis::Chip::ChipSample(), Isis::Chip::GetValue(), Isis::Chip::Lines(), Isis::Chip::Samples(), Isis::Chip::SetAllValues(), Isis::Chip::SetSize(), and Isis::Chip::SetValue().

Referenced by Isis::AutoReg::SetSubpixelPosition().

◆ selectionEdge()

void Isis::Selection::selectionEdge ( Chip selectionChip,
std::vector< std::vector< int > > *  pts 
)
inherited

◆ setDNRange()

int Isis::Centroid::setDNRange ( double  minimumDN,
double  maximumDN 
)

Set the range of the DNs.

Parameters
minimumDNThe min DN value of the range
maximumDNThe max DN value of the range
Returns
(int) The number 1 on success

Referenced by Isis::AutoReg::SetSubpixelPosition().


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