Isis 3.0 Developer's Reference (API) |
Home |
Reduce the pixel dimensions of an image. More...
#include <Reduce.h>
Inherited by Isis::Average, and Isis::Nearest.
Public Member Functions | |
Reduce (Isis::Cube *pInCube, vector< string >psBands, const double sampleScale, const double lineScale) | |
Constructor. | |
~Reduce () | |
Destructor. | |
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. | |
vector< string > | msBands |
Bands list. | |
Isis::Portal * | m_iPortal |
Input portal. |
Reduce the pixel dimensions of an image.
Reduce the pixel dimensions of an image. Has the functionality to reduce only a sub area in input image to output
Isis::Reduce::Reduce | ( | Isis::Cube * | pInCube, | |
vector< string > | psBands, | |||
const double | sampleScale, | |||
const double | lineScale | |||
) |
Constructor.
Reduce Constructor.
pInCube | - Input cube | |
psBands | - Bands list | |
sampleScale | - Sample scale | |
lineScale | - Line scale |
References Isis::Cube::getBandCount(), Isis::Cube::getLineCount(), Isis::Cube::getPixelType(), Isis::Cube::getSampleCount(), m_iPortal, mdLine, mdLineScale, mdSampleScale, miBandIndex, miEndLine, miEndSample, miInputBands, miInputLines, miInputSamples, mInCube, miOutputLines, miOutputSamples, miStartLine, miStartSample, and msBands.
Isis::Reduce::~Reduce | ( | ) |
Destructor.
References m_iPortal.
void Isis::Reduce::setInputBoundary | ( | int | startSample, | |
int | endSample, | |||
int | startLine, | |||
int | endLine | |||
) |
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 |
References mdLine, mdLineScale, mdSampleScale, miEndLine, miEndSample, miInputLines, miInputSamples, miOutputLines, miOutputSamples, miStartLine, and miStartSample.
Isis::PvlGroup Isis::Reduce::UpdateOutputLabel | ( | Isis::Cube * | pOutCube | ) |
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 |
References Isis::Cube::getLineCount(), Isis::Cube::getSampleCount(), mdLineScale, mdSampleScale, miEndLine, miEndSample, miInputLines, miInputSamples, mInCube, miOutputLines, miOutputSamples, miStartLine, miStartSample, Isis::SubArea::SetSubArea(), and Isis::SubArea::UpdateLabel().
Isis::Portal* Isis::Reduce::m_iPortal [protected] |
Input portal.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), and ~Reduce().
double Isis::Reduce::mdLine [protected] |
Line index.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), and setInputBoundary().
double Isis::Reduce::mdLineScale [protected] |
Line scale.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
double Isis::Reduce::mdSampleScale [protected] |
Sample scale.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
int Isis::Reduce::miBandIndex [protected] |
Band Index.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), and Reduce().
int Isis::Reduce::miEndLine [protected] |
Input end line.
Referenced by Reduce(), setInputBoundary(), and UpdateOutputLabel().
int Isis::Reduce::miEndSample [protected] |
Input end sample.
Referenced by Reduce(), setInputBoundary(), and UpdateOutputLabel().
int Isis::Reduce::miInputBands [protected] |
Input Bands.
Referenced by Isis::Average::operator()(), and Reduce().
int Isis::Reduce::miInputLines [protected] |
Input Lines.
Referenced by Isis::Average::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
int Isis::Reduce::miInputSamples [protected] |
Input Samples.
Referenced by Isis::Average::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
Isis::Cube* Isis::Reduce::mInCube [protected] |
Input image.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), and UpdateOutputLabel().
int Isis::Reduce::miOutputLines [protected] |
Output Lines.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
int Isis::Reduce::miOutputSamples [protected] |
Output Samples.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
int Isis::Reduce::miStartLine [protected] |
Input start line.
Referenced by Reduce(), setInputBoundary(), and UpdateOutputLabel().
int Isis::Reduce::miStartSample [protected] |
Input start sample.
Referenced by Isis::Average::operator()(), Isis::Nearest::operator()(), Reduce(), setInputBoundary(), and UpdateOutputLabel().
vector<string> Isis::Reduce::msBands [protected] |
Bands list.
Referenced by Reduce().