|
Isis 3 Programmer Reference
|
1 #ifndef ImageImporter_h
2 #define ImageImporter_h
14 class CubeAttributeOutput;
double m_hrsMin
The lower bound of the range within which input DNs will be made HRS.
virtual int convertRgbToGray(int pixel) const
Convert the current pixel, taken from an RGB/A image, and blend its RGB components into a single gray...
virtual int getPixel(int s, int l) const =0
Pure virtual method that returns a representation of a pixel for the input format that can then be br...
void setSamples(int s)
Set the sample dimension (width) of the output image.
double m_lrsMax
The upper bound of the range within which input DNs will be made LRS.
int(ImageImporter::* GetChannelMethod)(int pixel) const
Friendly alias for a method used to get a particular color channel.
virtual bool isRgb() const =0
Pure virtual method for returning true if the image is RGB (no alpha).
void setLrsRange(double min, double max)
Set the range of DN values within which a pixel from the input image will be set to LRS in the output...
File name manipulation and expansion.
virtual bool isArgb() const =0
Pure virtual method for returning true if the image is RGBA.
virtual int getGreen(int pixel) const =0
Pure virtual method for retrieving the green component of the given pixel.
virtual void updateRawBuffer(int line, int band) const =0
Pure virtual method that updates the buffer used to store chunks of the input data at a time.
void setNullRange(double min, double max)
Set the range of DN values within which a pixel from the input image will be set to Null in the outpu...
Manipulate and parse attributes of output cube filenames.
Imports images with standard formats into Isis as cubes.
int m_samples
The number of samples to be written to the output.
virtual int getBlue(int pixel) const =0
Pure virtual method for retrieving the blue component of the given pixel.
Buffer for reading and writing cube data.
int bands() const
The band dimension (depth) of the output image.
void setDefaultBands()
Set the number of bands to be created for the output cube based on the number of color channels in th...
Contains multiple PvlContainers.
double m_hrsMax
The upper bound of the range within which input DNs will be made HRS.
FileName * m_inputName
The filename of the input image.
int samples() const
The sample dimension (width) of the output image.
void setBands(int b)
Set the band dimension (depth) of the output image.
virtual PvlGroup convertProjection() const
Pure virtual method for converting projection information in the file being imported to an ISIS Mappi...
IO Handler for Isis Cubes.
virtual int getAlpha(int pixel) const =0
Pure virtual method for retrieving the alpha component of the given pixel.
void setLines(int l)
Set the line dimension (height) of the output image.
void operator()(Buffer &out) const
The method for processing the output cube in place, called for each line of the output image.
virtual ~ImageImporter()
Destruct the importer.
double m_nullMax
The upper bound of the range within which input DNs will be made Null.
void setHrsRange(double min, double max)
Set the range of DN values within which a pixel from the input image will be set to HRS in the output...
int m_lines
The number of lines to be written to the output.
int m_bands
The number of bands to be written to the output.
double testSpecial(double pixel) const
Tests a pixel against the Null, HRS, and LRS ranges defined by the importer's handler.
int lines() const
The line dimension (height) of the output image.
virtual bool isGrayscale() const =0
Pure virtual method for returning true if the image is grayscale.
static ImageImporter * fromFileName(FileName inputName)
A static (factory) method for constructing an ImageImporter instance from an input filename.
FileName filename() const
The filename of the input image this instance was constructed with.
virtual GetChannelMethod getBandChannel(int band) const
Retrieve the method responsible for fetching the color channel from the input image corresponding to ...
ImageImporter(FileName inputName)
Construct the importer.
Cube * m_outCube
The owned handle on the output cube to be imported to.
double m_lrsMin
The lower bound of the range within which input DNs will be made LRS.
This is free and unencumbered software released into the public domain.
Cube * createOutput(FileName outputName, CubeAttributeOutput &att)
Create the output cube from the given filename and attributes.
virtual int getRed(int pixel) const =0
Pure virtual method for retrieving the red component of the given pixel.
double m_nullMin
The lower bound of the range within which input DNs will be made Null.
virtual int getGray(int pixel) const =0
Pure virtual method for retrieving the gray component of the given pixel.