Isis 3 Programmer Reference
Isis::Average Class Reference

Functor for reduce using average functionality. More...

#include <Reduce.h>

Inheritance diagram for Isis::Average:
Inheritance graph
Collaboration diagram for Isis::Average:
Collaboration graph

Public Member Functions

 Average (Isis::Cube *pInCube, double pdSampleScale, double pdLineScale, double pdValidPer, QString psReplaceMode)
 Constructor.
 
void operator() (Isis::Buffer &out) const
 Operator () overload.
 
Isis::PvlGroup UpdateOutputLabel (Isis::Cube *pOutCube)
 Create label for the reduced output image.
 
void setInputBoundary (int startSample, int endSample, int startLine, int endLine)
 Parameters to input image sub area.
 

Protected Attributes

Isis::CubemInCube
 Input image.
 
double mdSampleScale
 Sample scale.
 
double mdLineScale
 Line scale.
 
int miStartSample
 Input start sample.
 
int miEndSample
 Input end sample.
 
int miStartLine
 Input start line.
 
int miEndLine
 Input end line.
 
double mdLine
 Line index.
 
int miOutputSamples
 Output Samples.
 
int miOutputLines
 Output Lines.
 
int miInputSamples
 Input Samples.
 
int miInputLines
 Input Lines.
 
int miInputBands
 Input Bands.
 
int miBandIndex
 Band Index.
 
Isis::Portalm_iPortal
 Input portal.
 

Private Attributes

double mdValidPer
 Valid Percentage.
 
QString msReplaceMode
 Replace Mode (scale/total)
 
double * mdIncTab
 
double * mdSum
 
double * mdNpts
 
double * mdSum2
 
double * mdNpts2
 

Detailed Description

Functor for reduce using average functionality.

Author
2011-04-15 Sharmila Prasad

Definition at line 107 of file Reduce.h.

Constructor & Destructor Documentation

◆ Average()

Isis::Average::Average ( Isis::Cube * pInCube,
double pdSampleScale,
double pdLineScale,
double pdValidPer,
QString psReplaceMode )
inline

Constructor.

Definition at line 110 of file Reduce.h.

References mdValidPer, and msReplaceMode.

Member Function Documentation

◆ operator()()

◆ setInputBoundary()

void Isis::Reduce::setInputBoundary ( int startSample,
int endSample,
int startLine,
int endLine )
inherited

Parameters to input image sub area.

Parameters to input image sub area to be reduced.

Author
Sharmila Prasad (5/11/2011)
Parameters
startSample- input image start sample
endSample- input image end sample
startLine- input image start line
endLine- input image end line
History
2013-01-16 Tracie Sucharski - Use rounding instead of ceil function to prevent errors that were caused by round off. The reduce application would get ons, onl from the user, calculate scale and pass the scale in to this class, which would calculate ons, onl, which could be different from the user entered values.

Definition at line 87 of file Reduce.cpp.

References Isis::Reduce::mdLine, Isis::Reduce::mdLineScale, Isis::Reduce::mdSampleScale, Isis::Reduce::miEndLine, Isis::Reduce::miEndSample, Isis::Reduce::miInputLines, Isis::Reduce::miInputSamples, Isis::Reduce::miOutputLines, Isis::Reduce::miOutputSamples, Isis::Reduce::miStartLine, and Isis::Reduce::miStartSample.

◆ UpdateOutputLabel()

Isis::PvlGroup Isis::Reduce::UpdateOutputLabel ( Isis::Cube * pOutCube)
inherited

Create label for the reduced output image.

Update the Mapping, Instrument, and AlphaCube groups in the output cube label.

Parameters
pOutCube- Resulting reduced output cube
pResultsGrp- This is the Results group that will go into the application log file. This group must be created by the calling application. Information will be added to it if the Mapping or Instrument groups are deleted from the output image label

Definition at line 112 of file Reduce.cpp.

References Isis::Cube::lineCount(), Isis::Reduce::mdLineScale, Isis::Reduce::mdSampleScale, Isis::Reduce::miEndLine, Isis::Reduce::miEndSample, Isis::Reduce::miInputLines, Isis::Reduce::miInputSamples, Isis::Reduce::mInCube, Isis::Reduce::miOutputLines, Isis::Reduce::miOutputSamples, Isis::Reduce::miStartLine, Isis::Reduce::miStartSample, Isis::Cube::sampleCount(), Isis::SubArea::SetSubArea(), and Isis::toString().

Member Data Documentation

◆ m_iPortal

Isis::Portal* Isis::Reduce::m_iPortal
protectedinherited

Input portal.

Definition at line 77 of file Reduce.h.

Referenced by Isis::Nearest::operator()(), operator()(), Isis::Reduce::Reduce(), and Isis::Reduce::~Reduce().

◆ mdIncTab

double* Isis::Average::mdIncTab
mutableprivate

Definition at line 123 of file Reduce.h.

◆ mdLine

double Isis::Reduce::mdLine
mutableprotectedinherited

Line index.

Definition at line 70 of file Reduce.h.

Referenced by Isis::Nearest::operator()(), operator()(), Isis::Reduce::Reduce(), and Isis::Reduce::setInputBoundary().

◆ mdLineScale

double Isis::Reduce::mdLineScale
protectedinherited

◆ mdNpts

double* Isis::Average::mdNpts
mutableprivate

Definition at line 125 of file Reduce.h.

◆ mdNpts2

double* Isis::Average::mdNpts2
mutableprivate

Definition at line 127 of file Reduce.h.

◆ mdSampleScale

double Isis::Reduce::mdSampleScale
protectedinherited

◆ mdSum

double* Isis::Average::mdSum
mutableprivate

Definition at line 124 of file Reduce.h.

◆ mdSum2

double* Isis::Average::mdSum2
mutableprivate

Definition at line 126 of file Reduce.h.

◆ mdValidPer

double Isis::Average::mdValidPer
mutableprivate

Valid Percentage.

Definition at line 121 of file Reduce.h.

Referenced by Average(), and operator()().

◆ miBandIndex

int Isis::Reduce::miBandIndex
mutableprotectedinherited

Band Index.

Definition at line 76 of file Reduce.h.

Referenced by Isis::Nearest::operator()(), operator()(), and Isis::Reduce::Reduce().

◆ miEndLine

int Isis::Reduce::miEndLine
protectedinherited

Input end line.

Definition at line 69 of file Reduce.h.

Referenced by Isis::Reduce::Reduce(), Isis::Reduce::setInputBoundary(), and Isis::Reduce::UpdateOutputLabel().

◆ miEndSample

int Isis::Reduce::miEndSample
protectedinherited

Input end sample.

Definition at line 67 of file Reduce.h.

Referenced by Isis::Reduce::Reduce(), Isis::Reduce::setInputBoundary(), and Isis::Reduce::UpdateOutputLabel().

◆ miInputBands

int Isis::Reduce::miInputBands
protectedinherited

Input Bands.

Definition at line 75 of file Reduce.h.

Referenced by operator()(), and Isis::Reduce::Reduce().

◆ miInputLines

int Isis::Reduce::miInputLines
protectedinherited

◆ miInputSamples

int Isis::Reduce::miInputSamples
protectedinherited

◆ mInCube

Isis::Cube* Isis::Reduce::mInCube
protectedinherited

Input image.

Definition at line 63 of file Reduce.h.

Referenced by Isis::Nearest::operator()(), operator()(), Isis::Reduce::Reduce(), and Isis::Reduce::UpdateOutputLabel().

◆ miOutputLines

int Isis::Reduce::miOutputLines
protectedinherited

◆ miOutputSamples

int Isis::Reduce::miOutputSamples
protectedinherited

◆ miStartLine

int Isis::Reduce::miStartLine
protectedinherited

Input start line.

Definition at line 68 of file Reduce.h.

Referenced by Isis::Reduce::Reduce(), Isis::Reduce::setInputBoundary(), and Isis::Reduce::UpdateOutputLabel().

◆ miStartSample

int Isis::Reduce::miStartSample
protectedinherited

◆ msReplaceMode

QString Isis::Average::msReplaceMode
private

Replace Mode (scale/total)

Definition at line 122 of file Reduce.h.

Referenced by Average(), and operator()().


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