48 #ifndef VIGRA_IMAGEINFO_HXX
49 #define VIGRA_IMAGEINFO_HXX
57 #include "array_vector.hxx"
58 #include "multi_iterator.hxx"
117 VIGRA_EXPORT
bool isImage(
char const * filename);
151 VIGRA_EXPORT
ImageExportInfo(
const char * filename,
const char * mode =
"w" );
152 VIGRA_EXPORT ~ImageExportInfo();
163 VIGRA_EXPORT ImageExportInfo &
setFileName(
const char * filename);
164 VIGRA_EXPORT
const char * getFileName()
const;
168 VIGRA_EXPORT
const char *
getMode()
const;
221 VIGRA_EXPORT ImageExportInfo &
setFileType(
const char * );
222 VIGRA_EXPORT
const char * getFileType()
const;
261 VIGRA_EXPORT ImageExportInfo &
setCompression(
const char * type);
263 VIGRA_EXPORT
const char * getCompression()
const;
289 VIGRA_EXPORT ImageExportInfo &
setPixelType(
const char * );
302 VIGRA_EXPORT ImageExportInfo & setForcedRangeMapping(
double fromMin,
double fromMax,
303 double toMin,
double toMax);
304 VIGRA_EXPORT
bool hasForcedRangeMapping()
const;
305 VIGRA_EXPORT
double getFromMin()
const;
306 VIGRA_EXPORT
double getFromMax()
const;
307 VIGRA_EXPORT
double getToMin()
const;
308 VIGRA_EXPORT
double getToMax()
const;
313 VIGRA_EXPORT
float getXResolution()
const;
318 VIGRA_EXPORT
float getYResolution()
const;
364 std::string m_filename, m_filetype, m_pixeltype, m_comp, m_mode;
365 float m_x_res, m_y_res;
369 double fromMin_, fromMax_, toMin_, toMax_;
373 VIGRA_EXPORT VIGRA_UNIQUE_PTR<Encoder> encoder(
const ImageExportInfo & info );
392 enum PixelType { UINT8, INT16, UINT16, INT32, UINT32, FLOAT, DOUBLE };
423 VIGRA_EXPORT
ImageImportInfo(
const char * filename,
unsigned int page = 0 );
424 VIGRA_EXPORT ~ImageImportInfo();
426 VIGRA_EXPORT
const char * getFileName()
const;
438 VIGRA_EXPORT
int width()
const;
442 VIGRA_EXPORT
int height()
const;
479 VIGRA_EXPORT
bool isColor()
const;
513 VIGRA_EXPORT PixelType
pixelType()
const;
518 VIGRA_EXPORT
bool isByte()
const;
551 std::string m_filename, m_filetype, m_pixeltype;
552 int m_width, m_height, m_num_bands, m_num_extra_bands, m_num_images, m_image_index;
553 float m_x_res, m_y_res;
562 VIGRA_EXPORT VIGRA_UNIQUE_PTR<Decoder> decoder(
const ImageImportInfo & info );
568 #endif // VIGRA_IMAGEINFO_HXX