iipsrv  0.9.9
KakaduImage Class Reference

Image class for Kakadu JPEG2000 Images: Inherits from IIPImage. Uses the Kakadu library. More...

#include <KakaduImage.h>

Inheritance diagram for KakaduImage:
IIPImage

List of all members.

Public Member Functions

 KakaduImage ()
 Constructor.
 KakaduImage (const std::string &path)
 Constructor.
 KakaduImage (const IIPImage &image)
 Copy Constructor.
 ~KakaduImage ()
 Destructor.
void openImage () throw (std::string)
 Overloaded function for opening a TIFF image.
void loadImageInfo (int x, int y) throw (std::string)
 Overloaded function for loading TIFF image information.
void closeImage ()
 Overloaded function for closing a TIFF image.
RawTile getTile (int x, int y, unsigned int r, int l, unsigned int t) throw (std::string)
 Overloaded function for getting a particular tile.
void getRegion (int ha, int va, unsigned int r, int l, int x, int y, unsigned int w, unsigned int h, unsigned char *b) throw (std::string)
 Overloaded function for returning a region for a given angle and resolution.

Detailed Description

Image class for Kakadu JPEG2000 Images: Inherits from IIPImage. Uses the Kakadu library.


Constructor & Destructor Documentation

KakaduImage::KakaduImage ( const std::string &  path) [inline]

Constructor.

Parameters:
pathimage path

References IIPImage::numResolutions, and IIPImage::tile_width.

KakaduImage::KakaduImage ( const IIPImage image) [inline]

Copy Constructor.

Parameters:
imageIIPImage object

References IIPImage::numResolutions, and IIPImage::tile_width.


Member Function Documentation

void KakaduImage::getRegion ( int  ha,
int  va,
unsigned int  r,
int  l,
int  x,
int  y,
unsigned int  w,
unsigned int  h,
unsigned char *  b 
) throw (std::string) [virtual]

Overloaded function for returning a region for a given angle and resolution.

Return a RawTile object: Overloaded by child class.

Parameters:
hahorizontal angle
vavertical angle
rresolution
lnumber of quality layers to decode
xx coordinate
yy coordinate
wwidth of region
hheight of region
bbuffer to fill

Reimplemented from IIPImage.

RawTile KakaduImage::getTile ( int  x,
int  y,
unsigned int  r,
int  l,
unsigned int  t 
) throw (std::string) [virtual]

Overloaded function for getting a particular tile.

Parameters:
xhorizontal sequence angle
yvertical sequence angle
rresolution
lnumber of quality layers to decode
ttile number

Reimplemented from IIPImage.

void KakaduImage::loadImageInfo ( int  x,
int  y 
) throw (std::string) [virtual]

Overloaded function for loading TIFF image information.

Parameters:
xhorizontal sequence angle
yvertical sequence angle

Reimplemented from IIPImage.


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