11#include "ImageImporter.h"
53 virtual bool isRgb()
const;
54 virtual bool isArgb()
const;
60 virtual int getPixel(
int s,
int l)
const;
62 virtual int getGray(
int pixel)
const;
63 virtual int getRed(
int pixel)
const;
64 virtual int getGreen(
int pixel)
const;
65 virtual int getBlue(
int pixel)
const;
66 virtual int getAlpha(
int pixel)
const;
File name manipulation and expansion.
Imports images with standard formats into Isis as cubes.
Contains multiple PvlContainers.
Container for cube-like labels.
Imports TIFF images as Isis cubes.
TIFF * m_image
LibTIFF representation of the input image.
GTIF * m_geotiff
GeoTiff hanele.
virtual int getBlue(int pixel) const
Retrieves the blue component of the given pixel.
virtual ~TiffImporter()
Destruct the importer.
int samplesPerPixel() const
The number of "samples" (bands in Isis terms) per pixel in the input image.
Pvl upperLeftXY(const Pvl &inLab) const
Convert the Tiff Tiepoint tag data to Upper Left X & Y values for the ISIS cube label mapping group.
virtual bool isRgb() const
Tests to see if the input image is neither grayscale nor has more than three samples per pixel,...
virtual bool isArgb() const
Tests to see if the input image is not grayscale and has more than three samples per pixel,...
TiffImporter(FileName inputName)
Construct the importer.
uint16_t m_samplesPerPixel
The number of "samples" (bands in Isis terms) in the input image.
virtual int getGray(int pixel) const
Retrieves the gray component of the given pixel.
virtual int getGreen(int pixel) const
Retrieves the green component of the given pixel.
uint32_t * m_raster
Buffer holding the raw TIFF image in memory.
virtual int getAlpha(int pixel) const
Retrieves the alpha component of the given pixel.
uint16_t m_photo
The enumerated photometric interpretation of the input image.
virtual int getRed(int pixel) const
Retrieves the red component of the given pixel.
Pvl resolution(const Pvl &inLab) const
Convert the Tiff PixelScale tag data to a singe resolution for the ISIS cube label mapping group.
virtual bool isGrayscale() const
Tests to see if the input image has a "min is white" or "min is black" photometric interpretation,...
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...
Pvl gdalItems(const Pvl &outPvl) const
Convert items in the GDAL tag to the ISIS mapping group.
virtual PvlGroup convertProjection() const
Convert any projection information associated with the input image to an ISIS Mapping group in PVL fo...
PvlGroup m_map
ISIS Mapping group.
virtual void updateRawBuffer(int line, int band) const
Does nothing as LibTIFF reads the entire input image into memory, and therefore does not need to be u...
This is free and unencumbered software released into the public domain.