![]() |
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. | |
| void | SetInputArea (double pdStartSample, double pdEndSample, double pdStartLine, double pdEndLine) |
| Sets the sub area dimensions of the input image. | |
| ~Enlarge () | |
| Destructoys the Enlarge object. | |
| 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. | |
| PvlGroup | UpdateOutputLabel (Cube *pOutCube) |
| Update the Mapping, Instrument, and AlphaCube groups in the output cube label. | |
| int | OutputSamples () const |
| Return the output number of samples. | |
| int | OutputLines () const |
| Return the output number of lines. | |
Private Attributes | |
| Cube * | mInCube |
| Input image. | |
| int | miOutputSamples |
| Number of samples for output. | |
| int | miOutputLines |
| Number of lines for output. | |
| double | mdSampleScale |
| Sample scale. | |
| double | mdLineScale |
| Line scale. | |
| double | mdStartSample |
| Input start sample. | |
| double | mdEndSample |
| Input end sample. | |
| double | mdStartLine |
| Input start line. | |
| double | mdEndLine |
| Input end line. | |
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
2011-04-14 Sharmila Prasad - Ported the class from "enlarge" app to base object class with added functionality to enlarge only the sub area within the input image into the output image
2011-08-19 Jeannie Backer - Modified unitTest to use $temporary variable instead of /tmp directory. Added some documentation to methods.
| 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::lineCount(), mdEndLine, mdEndSample, mdLineScale, mdSampleScale, mdStartLine, mdStartSample, mInCube, miOutputLines, miOutputSamples, and 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.
References mdEndLine, mdEndSample, mdLineScale, mdSampleScale, mdStartLine, mdStartSample, miOutputLines, miOutputSamples, and Isis::IException::Programmer.
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::Cube::lineCount(), mdEndLine, mdEndSample, mdLineScale, mdSampleScale, mdStartLine, mdStartSample, mInCube, miOutputLines, miOutputSamples, Isis::Cube::sampleCount(), Isis::SubArea::SetSubArea(), and Isis::toString().
|
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.
References mdLineScale, mdSampleScale, mdStartLine, and mdStartSample.
|
private |
Input end line.
Definition at line 79 of file Enlarge.h.
Referenced by Enlarge(), SetInputArea(), and UpdateOutputLabel().
|
private |
Input end sample.
Definition at line 77 of file Enlarge.h.
Referenced by Enlarge(), SetInputArea(), and UpdateOutputLabel().
|
private |
Line scale.
Definition at line 75 of file Enlarge.h.
Referenced by Enlarge(), SetInputArea(), UpdateOutputLabel(), and Xform().
|
private |
Sample scale.
Definition at line 74 of file Enlarge.h.
Referenced by Enlarge(), SetInputArea(), UpdateOutputLabel(), and Xform().
|
private |
Input start line.
Definition at line 78 of file Enlarge.h.
Referenced by Enlarge(), SetInputArea(), UpdateOutputLabel(), and Xform().
|
private |
Input start sample.
Definition at line 76 of file Enlarge.h.
Referenced by Enlarge(), SetInputArea(), UpdateOutputLabel(), and Xform().
|
private |
Input image.
Definition at line 71 of file Enlarge.h.
Referenced by Enlarge(), and UpdateOutputLabel().
|
private |
Number of lines for output.
Definition at line 73 of file Enlarge.h.
Referenced by Enlarge(), OutputLines(), SetInputArea(), and UpdateOutputLabel().
|
private |
Number of samples for output.
Definition at line 72 of file Enlarge.h.
Referenced by Enlarge(), OutputSamples(), SetInputArea(), and UpdateOutputLabel().