iipsrv  1.0
TPTImage Class Reference

Image class for Tiled Pyramidal Images: Inherits from IIPImage. Uses libtiff. More...

#include <TPTImage.h>

Inheritance diagram for TPTImage:
IIPImage

Public Member Functions

 TPTImage ()
 Constructor.
 
 TPTImage (const std::string &path)
 Constructor. More...
 
 TPTImage (const TPTImage &image)
 Copy Constructor. More...
 
TPTImageoperator= (TPTImage image)
 Assignment Operator. More...
 
 TPTImage (const IIPImage &image)
 Construct from an IIPImage object. More...
 
 ~TPTImage ()
 Destructor.
 
void openImage () throw (file_error)
 Overloaded function for opening a TIFF image.
 
void loadImageInfo (int x, int y) throw (file_error)
 Overloaded function for loading TIFF image information. More...
 
void closeImage ()
 Overloaded function for closing a TIFF image.
 
RawTile getTile (int x, int y, unsigned int r, int l, unsigned int t) throw (file_error)
 Overloaded function for getting a particular tile. More...
 
- Public Member Functions inherited from IIPImage
 IIPImage ()
 Default Constructor.
 
 IIPImage (const std::string &s)
 Constructer taking the image path as parameter. More...
 
 IIPImage (const IIPImage &image)
 Copy Constructor taking reference to another IIPImage object. More...
 
virtual ~IIPImage ()
 Virtual Destructor.
 
void Initialise ()
 Test the image and initialise some parameters.
 
void swap (IIPImage &a, IIPImage &b)
 Swap function. More...
 
std::list< int > getVerticalViewsList ()
 Return a list of available vertical angles.
 
std::list< int > getHorizontalViewsList ()
 Return a list of horizontal angles.
 
const std::string & getImagePath ()
 Return the image path.
 
const std::string getFileName (int x, int y)
 Return the full file path for a particular horizontal and vertical angle. More...
 
ImageFormat getImageFormat ()
 Get the image format.
 
void updateTimestamp (const std::string &s) throw ( file_error )
 Get the image timestamp. More...
 
const std::string getTimestamp ()
 Get a HTTP RFC 1123 formatted timestamp.
 
bool set ()
 Check whether this object has been initialised.
 
void setFileSystemPrefix (const std::string &prefix)
 Set a file system prefix for added security.
 
void setFileNamePattern (const std::string &pattern)
 Set the file name pattern used in image sequences.
 
unsigned int getNumResolutions ()
 Return the number of available resolutions in the image.
 
unsigned int getNumBitsPerPixel ()
 Return the number of bits per pixel for this image.
 
unsigned int getNumChannels ()
 Return the number of channels for this image.
 
float getMinValue (int n=0)
 Return the minimum sample value for each channel. More...
 
float getMaxValue (int n=0)
 Return the minimum sample value for each channel. More...
 
SampleType getSampleType ()
 Return the sample format type.
 
unsigned int getImageWidth (int n=0)
 Return the image width in pixels for a given resolution. More...
 
unsigned int getImageHeight (int n=0)
 Return the image height in pixels for a given resolution. More...
 
unsigned int getTileHeight ()
 Return the base tile height in pixels for a given resolution.
 
unsigned int getTileWidth ()
 Return the base tile width in pixels.
 
ColourSpaces getColourSpace ()
 Return the colour space for this image.
 
const std::string & getMetadata (const std::string &index)
 Return image metadata. More...
 
virtual bool regionDecoding ()
 Return whether this image type directly handles region decoding.
 
virtual void Load (const std::string &module)
 Load the appropriate codec module for this image type. More...
 
virtual const std::string getDescription ()
 Return codec description: Overloaded by child class.
 
virtual RawTile getRegion (int ha, int va, unsigned int r, int layers, int x, int y, unsigned int w, unsigned int h)
 Return a region for a given angle and resolution. More...
 
IIPImageoperator= (IIPImage image)
 Assignment operator. More...
 

Additional Inherited Members

- Public Attributes inherited from IIPImage
std::vector< unsigned int > image_widths
 The image pixel dimensions.
 
std::vector< unsigned int > image_heights
 
unsigned int tile_width
 The base tile pixel dimensions.
 
unsigned int tile_height
 
ColourSpaces colourspace
 The colour space of the image.
 
unsigned int numResolutions
 The number of available resolutions in this image.
 
unsigned int bpc
 The bits per channel for this image.
 
unsigned int channels
 The number of channels for this image.
 
SampleType sampleType
 The sample format type (fixed or floating point)
 
std::vector< float > min
 The min and max sample value for each channel.
 
std::vector< float > max
 
unsigned int quality_layers
 Quality layers.
 
bool isSet
 Indicate whether we have opened and initialised some parameters for this image.
 
int currentX
 If we have an image sequence, the current X and Y position.
 
int currentY
 
std::map< const std::string, std::string > metadata
 STL map to hold string metadata.
 
time_t timestamp
 Image modification timestamp.
 
- Protected Attributes inherited from IIPImage
std::vector< int > lut
 LUT.
 
unsigned int virtual_levels
 Number of resolution levels that don't physically exist in file.
 
ImageFormat format
 Return the image format e.g. tif.
 

Detailed Description

Image class for Tiled Pyramidal Images: Inherits from IIPImage. Uses libtiff.

Constructor & Destructor Documentation

TPTImage::TPTImage ( const std::string &  path)
inline

Constructor.

Parameters
pathimage path
TPTImage::TPTImage ( const TPTImage image)
inline

Copy Constructor.

Parameters
imageIIPImage object
TPTImage::TPTImage ( const IIPImage image)
inline

Construct from an IIPImage object.

Parameters
imageIIPImage object

Member Function Documentation

RawTile TPTImage::getTile ( int  x,
int  y,
unsigned int  r,
int  l,
unsigned int  t 
)
throw (file_error
)
virtual

Overloaded function for getting a particular tile.

Parameters
xhorizontal sequence angle
yvertical sequence angle
rresolution
lquality layers
ttile number

Reimplemented from IIPImage.

Referenced by ~TPTImage().

void TPTImage::loadImageInfo ( int  x,
int  y 
)
throw (file_error
)
virtual

Overloaded function for loading TIFF image information.

Parameters
xhorizontal sequence angle
yvertical sequence angle

Reimplemented from IIPImage.

Referenced by ~TPTImage().

TPTImage& TPTImage::operator= ( TPTImage  image)
inline

Assignment Operator.

Parameters
imageTPTImage object

References closeImage(), and IIPImage::operator=().


The documentation for this class was generated from the following file: