21 m_qimage =
new QImage(inputName.expanded());
24 "The file [" + inputName.expanded() +
25 "] does not contain a recognized image format",
133 return qGreen(pixel);
157 return qAlpha(pixel);
virtual bool isGrayscale() const
Tests to see if the input image is grayscale (no RGB/A).
virtual int getAlpha(int pixel) const
Retrieves the alpha component of the given pixel.
QImage * m_qimage
Structure holding all input image data in memory.
virtual int getPixel(int s, int l) const
Returns a representation of a pixel for the input format that can then be broken down into specific g...
File name manipulation and expansion.
virtual bool isRgb() const
Tests to see if the input image is neither grayscale nor has an alpha channel, implying RGB (no alpha...
void setDefaultBands()
Set the number of bands to be created for the output cube based on the number of color channels in th...
virtual int getRed(int pixel) const
Retrieves the red component of the given pixel.
virtual int getGreen(int pixel) const
Retrieves the green component of the given pixel.
#define _FILEINFO_
Macro for the filename and line number.
void setSamples(int s)
Set the sample dimension (width) of the output image.
A type of error that could only have occurred due to a mistake on the user's part (e...
void setLines(int l)
Set the line dimension (height) of the output image.
virtual int getGray(int pixel) const
Retrieves the gray component of the given pixel.
QtImporter(FileName inputName)
Construct the importer.
virtual bool isArgb() const
Tests to see if the input image is has an alpha channel, implying RGBA.
virtual ~QtImporter()
Destruct the importer.
Imports images with standard formats into Isis as cubes.
virtual void updateRawBuffer(int line, int band) const
Does nothing as Qt reads the entire input image into memory, and therefore does not need to be update...
virtual int getBlue(int pixel) const
Retrieves the blue component of the given pixel.