iipsrv
0.9.9
|
Image class for Kakadu JPEG2000 Images: Inherits from IIPImage. Uses the Kakadu library. More...
#include <KakaduImage.h>
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. |
Image class for Kakadu JPEG2000 Images: Inherits from IIPImage. Uses the Kakadu library.
KakaduImage::KakaduImage | ( | const std::string & | path | ) | [inline] |
Constructor.
path | image path |
References IIPImage::numResolutions, and IIPImage::tile_width.
KakaduImage::KakaduImage | ( | const IIPImage & | image | ) | [inline] |
Copy Constructor.
image | IIPImage object |
References IIPImage::numResolutions, and IIPImage::tile_width.
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.
ha | horizontal angle |
va | vertical angle |
r | resolution |
l | number of quality layers to decode |
x | x coordinate |
y | y coordinate |
w | width of region |
h | height of region |
b | buffer 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.
x | horizontal sequence angle |
y | vertical sequence angle |
r | resolution |
l | number of quality layers to decode |
t | tile number |
Reimplemented from IIPImage.
void KakaduImage::loadImageInfo | ( | int | x, |
int | y | ||
) | throw (std::string) [virtual] |
Overloaded function for loading TIFF image information.
x | horizontal sequence angle |
y | vertical sequence angle |
Reimplemented from IIPImage.