libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Public Member Functions | List of all members
Rok4ImageFactory Class Reference

#include <Rok4Image.h>

Collaboration diagram for Rok4ImageFactory:
Collaboration graph

Public Member Functions

Rok4ImagecreateRok4ImageToRead (char *filename, BoundingBox< double > bbox, double resx, double resy)
 Create an Rok4Image object, for reading.
Rok4ImagecreateRok4ImageToWrite (char *filename, BoundingBox< double > bbox, double resx, double resy, int width, int height, int channels, SampleFormat::eSampleFormat sampleformat, int bitspersample, Photometric::ePhotometric photometric, Compression::eCompression compression, int tileWidth, int tileHeight)
 Create a Rok4Image object, for writting.

Detailed Description

Author
Institut national de l'information géographique et forestière

Member Function Documentation

Rok4Image * Rok4ImageFactory::createRok4ImageToRead ( char *  filename,
BoundingBox< double >  bbox,
double  resx,
double  resy 
)

Create an Rok4Image object, for reading.

Bbox and resolutions are not present in the TIFF file, so we precise them. All other informations are extracted from TIFF header. We have to check consistency between provided bbox and resolutions and read image's dimensions.

Negative resolutions leads to georeferencement calculation. Both resolutions will be equals to 1 and the bounding box will be (0,0,width,height).

Parameters
[in]filenamepath to image file
[in]bboxbounding box
[in]resxX wise resolution.
[in]resyY wise resolution.
Returns
a Rok4Image object pointer, NULL if error

Here is the call graph for this function:

Rok4Image * Rok4ImageFactory::createRok4ImageToWrite ( char *  filename,
BoundingBox< double >  bbox,
double  resx,
double  resy,
int  width,
int  height,
int  channels,
SampleFormat::eSampleFormat  sampleformat,
int  bitspersample,
Photometric::ePhotometric  photometric,
Compression::eCompression  compression,
int  tileWidth,
int  tileHeight 
)

Create a Rok4Image object, for writting.

All informations have to be provided to be written in the TIFF header.

Negative resolutions leads to georeferencement calculation. Both resolutions will be equals to 1 and the bounding box will be (0,0,width,height).

Parameters
[in]filenamepath to image file
[in]bboxbounding box
[in]resxX wise resolution.
[in]resyY wise resolution.
[in]widthimage width, in pixel
[in]heightimage height, in pixel
[in]channelnumber of samples per pixel
[in]sampleformatsamples' format
[in]bitspersamplenumber of bits per sample
[in]photometricdata photometric
[in]compressiondata compression
[in]tileWidthtile's pixel width
[in]tileHeighttile's pixel height
Returns
a Rok4Image object pointer, NULL if error

Here is the call graph for this function:


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