Isis Developer Reference
Enlarge.h
Go to the documentation of this file.
1 #ifndef _Enlarge_h_
2 #define _Enlarge_h_
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include "Transform.h"
11 
12 namespace Isis {
13  class Cube;
14  class PvlGroup;
34  class Enlarge : public Transform {
35  public:
36  // Constructor
37  Enlarge(Cube *pInCube, const double sampleScale, const double lineScale);
38 
39  // Set the sub area of input image to enlarge
40  void SetInputArea(double pdStartSample, double pdEndSample,
41  double pdStartLine, double pdEndLine);
42 
44  ~Enlarge() {};
45 
46  // Implementations for parent's pure virtual members
47  // Convert the requested output samp/line to an input samp/line
48  bool Xform(double &inSample, double &inLine,
49  const double outSample, const double outLine);
50 
51  // Create label for the enlarged output image
52  PvlGroup UpdateOutputLabel(Cube *pOutCube);
53 
58  int OutputSamples() const {
59  return miOutputSamples;
60  }
61 
66  int OutputLines() const {
67  return miOutputLines;
68  }
69 
70  private:
71  Cube *mInCube;
72  int miOutputSamples;
73  int miOutputLines;
74  double mdSampleScale;
75  double mdLineScale;
76  double mdStartSample;
77  double mdEndSample;
78  double mdStartLine;
79  double mdEndLine;
80  };
81 };
82 
83 #endif
84 
Isis::Enlarge::Enlarge
Enlarge(Cube *pInCube, const double sampleScale, const double lineScale)
Constructs an Enlarge object.
Definition: Enlarge.cpp:27
Cube.h
Isis::Enlarge::Xform
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:57
Isis::SubArea::SetSubArea
void SetSubArea(const int orignl, const int origns, const int sl, const int ss, const int el, const int es, const double linc, const double sinc)
Defines the subarea.
Definition: SubArea.cpp:60
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::Enlarge
Enlarge the pixel dimensions of an image.
Definition: Enlarge.h:34
Isis::Enlarge::OutputLines
int OutputLines() const
Return the output number of lines.
Definition: Enlarge.h:66
PvlGroup.h
Isis::Enlarge::OutputSamples
int OutputSamples() const
Return the output number of samples.
Definition: Enlarge.h:58
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
SubArea.h
Enlarge.h
Isis::Transform
Pixel transformation.
Definition: Transform.h:72
Isis::SubArea::UpdateLabel
void UpdateLabel(Cube *icube, Cube *ocube, PvlGroup &results)
Modifies a label for a file containing a subarea.
Definition: SubArea.cpp:126
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::Cube::sampleCount
int sampleCount() const
Definition: Cube.cpp:1807
Isis::Enlarge::UpdateOutputLabel
PvlGroup UpdateOutputLabel(Cube *pOutCube)
Update the Mapping, Instrument, and AlphaCube groups in the output cube label.
Definition: Enlarge.cpp:114
Isis::Cube
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::IException
Isis exception class.
Definition: IException.h:91
Transform.h
Isis::Enlarge::SetInputArea
void SetInputArea(double pdStartSample, double pdEndSample, double pdStartLine, double pdEndLine)
Sets the sub area dimensions of the input image.
Definition: Enlarge.cpp:76
IException.h
std
Namespace for the standard library.
Isis::SubArea
Apply corrections to a cube label for subarea extraction.
Definition: SubArea.h:47
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::Enlarge::~Enlarge
~Enlarge()
Destructoys the Enlarge object.
Definition: Enlarge.h:44