Isis 3 Developer Reference
Enlarge.h
Go to the documentation of this file.
1 #ifndef _Enlarge_h_
2 #define _Enlarge_h_
3 
24 #include "Transform.h"
25 
26 namespace Isis {
27  class Cube;
28  class PvlGroup;
48  class Enlarge : public Transform {
49  public:
50  // Constructor
51  Enlarge(Cube *pInCube, const double sampleScale, const double lineScale);
52 
53  // Set the sub area of input image to enlarge
54  void SetInputArea(double pdStartSample, double pdEndSample,
55  double pdStartLine, double pdEndLine);
56 
58  ~Enlarge() {};
59 
60  // Implementations for parent's pure virtual members
61  // Convert the requested output samp/line to an input samp/line
62  bool Xform(double &inSample, double &inLine,
63  const double outSample, const double outLine);
64 
65  // Create label for the enlarged output image
66  PvlGroup UpdateOutputLabel(Cube *pOutCube);
67 
72  int OutputSamples() const {
73  return miOutputSamples;
74  }
75 
80  int OutputLines() const {
81  return miOutputLines;
82  }
83 
84  private:
85  Cube *mInCube;
86  int miOutputSamples;
87  int miOutputLines;
88  double mdSampleScale;
89  double mdLineScale;
90  double mdStartSample;
91  double mdEndSample;
92  double mdStartLine;
93  double mdEndLine;
94  };
95 };
96 
97 #endif
98 
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 ...
Definition: Enlarge.cpp:70
Enlarge(Cube *pInCube, const double sampleScale, const double lineScale)
Constructs an Enlarge object.
Definition: Enlarge.cpp:40
int OutputSamples() const
Return the output number of samples.
Definition: Enlarge.h:72
~Enlarge()
Destructoys the Enlarge object.
Definition: Enlarge.h:58
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
Enlarge the pixel dimensions of an image.
Definition: Enlarge.h:48
void SetInputArea(double pdStartSample, double pdEndSample, double pdStartLine, double pdEndLine)
Sets the sub area dimensions of the input image.
Definition: Enlarge.cpp:89
PvlGroup UpdateOutputLabel(Cube *pOutCube)
Update the Mapping, Instrument, and AlphaCube groups in the output cube label.
Definition: Enlarge.cpp:127
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Pixel transformation.
Definition: Transform.h:89
int OutputLines() const
Return the output number of lines.
Definition: Enlarge.h:80
IO Handler for Isis Cubes.
Definition: Cube.h:170