Isis 3 Programmer Reference
|
Enlarge the pixel dimensions of an image. More...
#include <Enlarge.h>
Public Member Functions | |
Enlarge (Cube *pInCube, const double sampleScale, const double lineScale) | |
Constructs an Enlarge object. More... | |
void | SetInputArea (double pdStartSample, double pdEndSample, double pdStartLine, double pdEndLine) |
Sets the sub area dimensions of the input image. More... | |
~Enlarge () | |
Destructoys the Enlarge object. More... | |
bool | Xform (double &inSample, double &inLine, const double outSample, const double outLine) |
Implementations for parent's pure virtual members Convert the requested output samp/line to an input samp/line. More... | |
PvlGroup | UpdateOutputLabel (Cube *pOutCube) |
Update the Mapping, Instrument, and AlphaCube groups in the output cube label. More... | |
int | OutputSamples () const |
Return the output number of samples. More... | |
int | OutputLines () const |
Return the output number of lines. More... | |
Private Attributes | |
Cube * | mInCube |
Input image. More... | |
int | miOutputSamples |
Number of samples for output. More... | |
int | miOutputLines |
Number of lines for output. More... | |
double | mdSampleScale |
Sample scale. More... | |
double | mdLineScale |
Line scale. More... | |
double | mdStartSample |
Input start sample. More... | |
double | mdEndSample |
Input end sample. More... | |
double | mdStartLine |
Input start line. More... | |
double | mdEndLine |
Input end line. More... | |
Enlarge the pixel dimensions of an image.
Enlarge the pixel dimensions of an image. Has the functionality to enlarge only a sub area in input image to output
Isis::Enlarge::Enlarge | ( | Cube * | pInCube, |
const double | sampleScale, | ||
const double | lineScale | ||
) |
Constructs an Enlarge object.
pInCube | - Input cube to be enlarged |
sampleScale | - Sample scale |
lineScale | - Line scale |
Definition at line 27 of file Enlarge.cpp.
References Isis::Cube::sampleCount().
|
inline |
|
inlinevirtual |
Return the output number of lines.
Reimplemented from Isis::Transform.
Definition at line 66 of file Enlarge.h.
References miOutputLines.
|
inlinevirtual |
Return the output number of samples.
Reimplemented from Isis::Transform.
Definition at line 58 of file Enlarge.h.
References miOutputSamples.
void Isis::Enlarge::SetInputArea | ( | double | pdStartSample, |
double | pdEndSample, | ||
double | pdStartLine, | ||
double | pdEndLine | ||
) |
Sets the sub area dimensions of the input image.
Default is the entire image
pdStartSample | - Input start sample |
pdEndSample | - Input end sample |
pdStartLine | - Input start line |
pdEndLine | - Input end line |
Definition at line 76 of file Enlarge.cpp.
Referenced by Isis::FileTool::saveAsEnlargedCube().
Update the Mapping, Instrument, and AlphaCube groups in the output cube label.
pOutCube | - Resulting enlarged output cube |
Definition at line 114 of file Enlarge.cpp.
References Isis::SubArea::SetSubArea(), Isis::toString(), and Isis::SubArea::UpdateLabel().
Referenced by Isis::FileTool::saveAsEnlargedCube().
|
virtual |
Implementations for parent's pure virtual members Convert the requested output samp/line to an input samp/line.
inSample | - Calculated input sample corresponding to output sample |
inLine | - Calculated input line corresponding to output line |
outSample | - Output sample |
outLine | - Output line |
Reimplemented from Isis::Transform.
Definition at line 57 of file Enlarge.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
Number of samples for output.
Definition at line 72 of file Enlarge.h.
Referenced by OutputSamples().