Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

TiffInterface.hpp

00001 #ifndef _TiffInterface_H
00002 #define _TiffInterface_H
00003 
00004 
00005 
00024 class TiffInterface
00025 {
00026 public:
00027         
00028 static bool readImageParams(const char* filename,
00029                                                         int* width,
00030                                                         int* height,
00031                                                         int* channels,
00032                                                         int* bitsPerSample,
00033                                                         int* compression,
00034                                                         int* photometric,
00035                                                         int* orientation,
00036                                                         int* rowsperStrip); 
00037 
00038 // read
00039 static unsigned char * read(const char* filename,
00040                                                         int* width,
00041                                                         int* height,
00042                                                         int* channels,
00043                                                         int* bitsPerSample,
00044                                                         int* compression,
00045                                                         int* photometric,
00046                                                         int* orientation,
00047                                                         int* rowsperStrip); 
00048 
00049 // read
00050 static unsigned short * read16(const char* filename,
00051                                                         int* width,
00052                                                         int* height,
00053                                                         int* channels);
00054 
00055 // save byte and RGB raw data
00056 static bool save(const char* filename, 
00057                                                    unsigned char *image,
00058                                                    int width,
00059                                                    int height,
00060                                                    int padding,
00061                                                    int channels);
00062 
00063 static bool save16(const char* filename, 
00064                                                    unsigned short *image,
00065                                                    int width,
00066                                                    int height,
00067                                                    int channels);
00068 
00069 };
00070 
00071 #endif
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com