Isis Developer Reference
Centroid.h
Go to the documentation of this file.
1 #ifndef Centroid_h
2 #define Centroid_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include "Chip.h"
11 #include "Selection.h"
12 #include "Statistics.h"
13 
14 namespace Isis {
30  class Centroid : public Selection
31  {
32  public:
33  Centroid();
34  virtual ~Centroid();
35  //pure virtual function to be defined in this child class
36  int select(Chip *inputChip,Chip *selectionChip);
37  int setDNRange( double minimumDN,double maximumDN );
38  double getMinDN();
39  double getMaxDN();
40  private:
41  double m_maxDN;
42  double m_minDN;
43  };
44 }
45 #endif
Isis::Centroid::~Centroid
virtual ~Centroid()
Definition: Centroid.cpp:17
Isis::Centroid
Selection class derived from the Pure Virtual Parent Class for all Selection classes.
Definition: Centroid.h:31
Isis::Centroid::getMaxDN
double getMaxDN()
Definition: Centroid.cpp:147
Isis::Chip::SetSize
void SetSize(const int samples, const int lines)
Change the size of the Chip.
Definition: Chip.cpp:134
Isis::Chip::GetValue
double GetValue(int sample, int line)
Loads a Chip with a value.
Definition: Chip.h:145
Isis::Chip::ChipSample
double ChipSample() const
Definition: Chip.h:219
Isis::Selection
Pure Virtual Parent Class for all Selection classes.
Definition: Selection.h:43
Isis::Chip::SetValue
void SetValue(int sample, int line, const double &value)
Sets a value in the chip.
Definition: Chip.h:126
Isis::Chip::Lines
int Lines() const
Definition: Chip.h:106
Isis::Chip::SetAllValues
void SetAllValues(const double &d)
Single value assignment operator.
Definition: Chip.cpp:100
Isis::Chip::ChipLine
double ChipLine() const
Definition: Chip.h:226
Isis::Centroid::Centroid
Centroid()
Definition: Centroid.cpp:12
Selection.h
Statistics.h
Centroid.h
std
Namespace for the standard library.
Isis::Centroid::setDNRange
int setDNRange(double minimumDN, double maximumDN)
Set the range of the DNs.
Definition: Centroid.cpp:126
Isis::Chip
A small chip of data used for pattern matching.
Definition: Chip.h:86
Isis::Chip::Samples
int Samples() const
Definition: Chip.h:99
Isis::Centroid::select
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 w...
Definition: Centroid.cpp:30
Isis::Centroid::getMinDN
double getMinDN()
Definition: Centroid.cpp:139
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Chip.h