An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis 3 Programmer Reference
|
Functor for reduce using average functionality. More...
#include <Reduce.h>
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::Cube * | mInCube |
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::Portal * | m_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 |
Functor for reduce using average functionality.
|
inline |
Constructor.
Definition at line 110 of file Reduce.h.
References mdValidPer, msReplaceMode, and Isis::Reduce::Reduce().
void Isis::Average::operator() | ( | Isis::Buffer & | out | ) | const |
Operator () overload.
Average Operator () overload, parameter for StartProcessInPlace refer ProcessByLine, ProcessByBrick.
out | - output buffer |
Definition at line 172 of file Reduce.cpp.
References Isis::Buffer::Band(), Isis::IsSpecial(), Isis::IsValidPixel(), Isis::Buffer::Line(), Isis::Reduce::m_iPortal, Isis::Reduce::mdLine, Isis::Reduce::mdLineScale, Isis::Reduce::mdSampleScale, mdValidPer, Isis::Reduce::miBandIndex, Isis::Reduce::miInputBands, Isis::Reduce::miInputLines, Isis::Reduce::miInputSamples, Isis::Reduce::mInCube, Isis::Reduce::miOutputLines, Isis::Reduce::miOutputSamples, Isis::Reduce::miStartSample, msReplaceMode, Isis::Null, Isis::PixelToString(), Isis::Buffer::size(), and Isis::StringToPixel().
|
inherited |
Parameters to input image sub area.
Parameters to input image sub area to be reduced.
startSample | - input image start sample |
endSample | - input image end sample |
startLine | - input image start line |
endLine | - input image end line |
Definition at line 87 of file Reduce.cpp.
References mdLine, mdLineScale, mdSampleScale, miEndLine, miEndSample, miInputLines, miInputSamples, miOutputLines, miOutputSamples, miStartLine, and miStartSample.
Referenced by Isis::FileTool::saveAsReducedCube().
|
inherited |
Create label for the reduced output image.
Update the Mapping, Instrument, and AlphaCube groups in the output cube label.
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 mdLineScale, mdSampleScale, miEndLine, miEndSample, miInputLines, miInputSamples, mInCube, miOutputLines, miOutputSamples, miStartLine, miStartSample, Isis::SubArea::SetSubArea(), Isis::toString(), and Isis::SubArea::UpdateLabel().
Referenced by Isis::FileTool::saveAsReducedCube().
|
protectedinherited |
Input portal.
Definition at line 77 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), and ~Reduce().
|
mutableprotectedinherited |
Line index.
Definition at line 70 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), and setInputBoundary().
|
protectedinherited |
Line scale.
Definition at line 65 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Sample scale.
Definition at line 64 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
mutableprivate |
Valid Percentage.
Definition at line 121 of file Reduce.h.
Referenced by Average(), and operator()().
|
mutableprotectedinherited |
Band Index.
Definition at line 76 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), and Reduce().
|
protectedinherited |
Input end line.
Definition at line 69 of file Reduce.h.
Referenced by Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Input end sample.
Definition at line 67 of file Reduce.h.
Referenced by Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Input Bands.
Definition at line 75 of file Reduce.h.
Referenced by Isis::Average::operator()(), and Reduce().
|
protectedinherited |
Input Lines.
Definition at line 74 of file Reduce.h.
Referenced by Isis::Average::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Input Samples.
Definition at line 73 of file Reduce.h.
Referenced by Isis::Average::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Input image.
Definition at line 63 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), and UpdateOutputLabel().
|
protectedinherited |
Output Lines.
Definition at line 72 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Output Samples.
Definition at line 71 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Input start line.
Definition at line 68 of file Reduce.h.
Referenced by Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
protectedinherited |
Input start sample.
Definition at line 66 of file Reduce.h.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
|
private |
Replace Mode (scale/total)
Definition at line 122 of file Reduce.h.
Referenced by Average(), and operator()().