Isis Developer Reference
Isis::Enlarge Class Reference

Enlarge the pixel dimensions of an image. More...

#include <Enlarge.h>

Inheritance diagram for Isis::Enlarge:
Inheritance graph
Collaboration diagram for Isis::Enlarge:
Collaboration graph

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.
 

Detailed Description

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

Author
2002-12-13 Stuart Sides

Constructor & Destructor Documentation

◆ Enlarge()

Isis::Enlarge::Enlarge ( Cube * pInCube,
const double sampleScale,
const double lineScale )

Constructs an Enlarge object.

Parameters
pInCube- Input cube to be enlarged
sampleScale- Sample scale
lineScale- Line scale

References Isis::Cube::lineCount(), and Isis::Cube::sampleCount().

◆ ~Enlarge()

Isis::Enlarge::~Enlarge ( )
inline

Destructoys the Enlarge object.

Member Function Documentation

◆ OutputLines()

int Isis::Enlarge::OutputLines ( ) const
inlinevirtual

Return the output number of lines.

Returns
int - Number of lines in output

Reimplemented from Isis::Transform.

◆ OutputSamples()

int Isis::Enlarge::OutputSamples ( ) const
inlinevirtual

Return the output number of samples.

Returns
int - Number of samples in output

Reimplemented from Isis::Transform.

◆ SetInputArea()

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

Author
Sharmila Prasad (4/14/2011)
Parameters
pdStartSample- Input start sample
pdEndSample- Input end sample
pdStartLine- Input start line
pdEndLine- Input end line

References _FILEINFO_, and Isis::IException::Programmer.

◆ UpdateOutputLabel()

PvlGroup Isis::Enlarge::UpdateOutputLabel ( Cube * pOutCube)

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

Parameters
pOutCube- Resulting enlarged output cube
Returns
PvlGroup - 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::lineCount(), Isis::Cube::sampleCount(), Isis::SubArea::SetSubArea(), and Isis::toString().

◆ Xform()

bool Isis::Enlarge::Xform ( double & inSample,
double & inLine,
const double outSample,
const double outLine )
virtual

Implementations for parent's pure virtual members Convert the requested output samp/line to an input samp/line.

Parameters
inSample- Calculated input sample corresponding to output sample
inLine- Calculated input line corresponding to output line
outSample- Output sample
outLine- Output line
Returns
bool

Reimplemented from Isis::Transform.


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