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);
147 VIGRA_EXPORT ~ImageExportInfo();
158 VIGRA_EXPORT ImageExportInfo &
setFileName(
const char * filename);
159 VIGRA_EXPORT
const char * getFileName()
const;
209 VIGRA_EXPORT ImageExportInfo &
setFileType(
const char * );
210 VIGRA_EXPORT
const char * getFileType()
const;
229 VIGRA_EXPORT
const char * getCompression()
const;
255 VIGRA_EXPORT ImageExportInfo &
setPixelType(
const char * );
268 VIGRA_EXPORT ImageExportInfo & setForcedRangeMapping(
double fromMin,
double fromMax,
269 double toMin,
double toMax);
270 VIGRA_EXPORT
bool hasForcedRangeMapping()
const;
271 VIGRA_EXPORT
double getFromMin()
const;
272 VIGRA_EXPORT
double getFromMax()
const;
273 VIGRA_EXPORT
double getToMin()
const;
274 VIGRA_EXPORT
double getToMax()
const;
279 VIGRA_EXPORT
float getXResolution()
const;
284 VIGRA_EXPORT
float getYResolution()
const;
320 std::string m_filename, m_filetype, m_pixeltype, m_comp;
321 float m_x_res, m_y_res;
324 double fromMin_, fromMax_, toMin_, toMax_;
328 VIGRA_EXPORT std::auto_ptr<Encoder> encoder(
const ImageExportInfo & info );
347 enum PixelType { UINT8, INT16, UINT16, INT32, UINT32, FLOAT, DOUBLE };
373 VIGRA_EXPORT ~ImageImportInfo();
375 VIGRA_EXPORT
const char * getFileName()
const;
387 VIGRA_EXPORT
int width()
const;
391 VIGRA_EXPORT
int height()
const;
416 VIGRA_EXPORT
bool isColor()
const;
450 VIGRA_EXPORT PixelType
pixelType()
const;
455 VIGRA_EXPORT
bool isByte()
const;
483 std::string m_filename, m_filetype, m_pixeltype;
484 int m_width, m_height, m_num_bands, m_num_extra_bands;
485 float m_x_res, m_y_res;
491 VIGRA_EXPORT std::auto_ptr<Decoder> decoder(
const ImageImportInfo & info );
497 #endif // VIGRA_IMAGEINFO_HXX