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;
163 VIGRA_EXPORT
const char *
getMode()
const;
216 VIGRA_EXPORT ImageExportInfo &
setFileType(
const char * );
217 VIGRA_EXPORT
const char * getFileType()
const;
256 VIGRA_EXPORT ImageExportInfo &
setCompression(
const char * type);
258 VIGRA_EXPORT
const char * getCompression()
const;
284 VIGRA_EXPORT ImageExportInfo &
setPixelType(
const char * );
297 VIGRA_EXPORT ImageExportInfo & setForcedRangeMapping(
double fromMin,
double fromMax,
298 double toMin,
double toMax);
299 VIGRA_EXPORT
bool hasForcedRangeMapping()
const;
300 VIGRA_EXPORT
double getFromMin()
const;
301 VIGRA_EXPORT
double getFromMax()
const;
302 VIGRA_EXPORT
double getToMin()
const;
303 VIGRA_EXPORT
double getToMax()
const;
308 VIGRA_EXPORT
float getXResolution()
const;
313 VIGRA_EXPORT
float getYResolution()
const;
359 std::string m_filename, m_filetype, m_pixeltype, m_comp, m_mode;
360 float m_x_res, m_y_res;
364 double fromMin_, fromMax_, toMin_, toMax_;
368 VIGRA_EXPORT std::auto_ptr<Encoder> encoder(
const ImageExportInfo & info );
387 enum PixelType { UINT8, INT16, UINT16, INT32, UINT32, FLOAT, DOUBLE };
416 VIGRA_EXPORT ~ImageImportInfo();
418 VIGRA_EXPORT
const char * getFileName()
const;
430 VIGRA_EXPORT
int width()
const;
434 VIGRA_EXPORT
int height()
const;
471 VIGRA_EXPORT
bool isColor()
const;
505 VIGRA_EXPORT PixelType
pixelType()
const;
510 VIGRA_EXPORT
bool isByte()
const;
543 std::string m_filename, m_filetype, m_pixeltype;
544 int m_width, m_height, m_num_bands, m_num_extra_bands, m_num_images, m_image_index;
545 float m_x_res, m_y_res;
554 VIGRA_EXPORT std::auto_ptr<Decoder> decoder(
const ImageImportInfo & info );
560 #endif // VIGRA_IMAGEINFO_HXX