Isis 3 Programmer 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

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.
 
int setDNRange (double minimumDN, double maximumDN)
 Set the range of the DNs.
 
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
 The max DN value to be included in the selection.
 
double m_minDN
 The min DN value to be included in the selection.
 

Detailed Description

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

Description coming soon

Author
2011-10-12 Orrin Thomas


History

2011-10-12 Orrin Thomas - Original version

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.

2017-08-30 Summer Stapleton - Updated documentation. References #4807.

Definition at line 30 of file Centroid.h.

Constructor & Destructor Documentation

◆ Centroid()

Isis::Centroid::Centroid ( )

Definition at line 12 of file Centroid.cpp.

◆ ~Centroid()

Isis::Centroid::~Centroid ( )
virtual

Definition at line 17 of file Centroid.cpp.

Member Function Documentation

◆ bestFitEllipse()

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

Definition at line 416 of file Selection.cpp.

◆ centerOfMass()

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

Definition at line 164 of file Selection.cpp.

◆ centerOfMassWeighted()

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

Definition at line 187 of file Selection.cpp.

◆ elipsePercentSelected()

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

Definition at line 292 of file Selection.cpp.

◆ elipticalReduction()

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

Reimplemented in Isis::CentroidApolloPan.

Definition at line 32 of file Selection.cpp.

◆ ellipseAxesAreaFromMatrix()

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

Definition at line 581 of file Selection.cpp.

◆ ellipseFrom5Pts()

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

Definition at line 331 of file Selection.cpp.

◆ ellipseFromCenterAxesAngle()

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

Definition at line 753 of file Selection.cpp.

◆ ellipseFromCubic()

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

Definition at line 385 of file Selection.cpp.

◆ ellipseInChip()

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

Definition at line 632 of file Selection.cpp.

◆ getMaxDN()

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

Definition at line 147 of file Centroid.cpp.

References m_maxDN.

Referenced by Isis::CentroidApolloPan::selectAdaptive().

◆ getMinDN()

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

Definition at line 139 of file Centroid.cpp.

References m_minDN.

Referenced by Isis::CentroidApolloPan::selectAdaptive().

◆ minimumBoundingElipse()

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

Definition at line 228 of file Selection.cpp.

◆ pointInEllipse()

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

Definition at line 730 of file Selection.cpp.

◆ 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.

Definition at line 30 of file Centroid.cpp.

References m_maxDN, and m_minDN.

Referenced by Isis::CentroidApolloPan::selectAdaptive().

◆ selectionEdge()

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

Definition at line 553 of file Selection.cpp.

◆ 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

Definition at line 126 of file Centroid.cpp.

References m_maxDN, and m_minDN.

Referenced by Isis::CentroidApolloPan::selectAdaptive(), and Isis::AutoReg::SetSubpixelPosition().

Member Data Documentation

◆ m_maxDN

double Isis::Centroid::m_maxDN
private

The max DN value to be included in the selection.

Definition at line 41 of file Centroid.h.

Referenced by getMaxDN(), select(), and setDNRange().

◆ m_minDN

double Isis::Centroid::m_minDN
private

The min DN value to be included in the selection.

Definition at line 42 of file Centroid.h.

Referenced by getMinDN(), select(), and setDNRange().


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