Isis Developer Reference
Enlarge.h
Go to the documentation of this file.
1#ifndef _Enlarge_h_
2#define _Enlarge_h_
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include "Transform.h"
11
12namespace 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
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
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
IO Handler for Isis Cubes.
Definition Cube.h:168
Enlarge the pixel dimensions of an image.
Definition Enlarge.h:34
void SetInputArea(double pdStartSample, double pdEndSample, double pdStartLine, double pdEndLine)
Sets the sub area dimensions of the input image.
Definition Enlarge.cpp:76
int OutputLines() const
Return the output number of lines.
Definition Enlarge.h:66
int OutputSamples() const
Return the output number of samples.
Definition Enlarge.h:58
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
Enlarge(Cube *pInCube, const double sampleScale, const double lineScale)
Constructs an Enlarge object.
Definition Enlarge.cpp:27
~Enlarge()
Destructoys the Enlarge object.
Definition Enlarge.h:44
PvlGroup UpdateOutputLabel(Cube *pOutCube)
Update the Mapping, Instrument, and AlphaCube groups in the output cube label.
Definition Enlarge.cpp:114
Contains multiple PvlContainers.
Definition PvlGroup.h:41
Pixel transformation.
Definition Transform.h:72
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16