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

#include <FileImage.h>

Collaboration diagram for FileImageFactory:
Collaboration graph

Public Member Functions

FileImagecreateImageToRead (char *filename, BoundingBox< double > bbox=BoundingBox< double >(0, 0, 0, 0), double resx=-1, double resy=-1)
 Create a FileImage object, for reading.
FileImagecreateImageToWrite (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)
 Create an FileImage object, for writting.

Detailed Description

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

Member Function Documentation

FileImage * FileImageFactory::createImageToRead ( char *  filename,
BoundingBox< double >  bbox = BoundingBox<double>(0,0,0,0),
double  resx = -1,
double  resy = -1 
)

Create a FileImage object, for reading.

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

Parameters
[in]filenamepath to image file
[in]bboxbounding box
[in]resxX wise resolution.
[in]resyY wise resolution.
Returns
a FileImage's child class object pointer, NULL if error

Here is the call graph for this function:

Here is the caller graph for this function:

FileImage * FileImageFactory::createImageToWrite ( 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 
)

Create an FileImage object, for writting.

All informations have to be provided to be written in the header. No calculation.

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
Returns
a FileImage's child class object pointer, NULL if error

Here is the call graph for this function:

Here is the caller graph for this function:


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