48#ifndef VIGRA_IMAGEINFO_HXX
49#define VIGRA_IMAGEINFO_HXX
57#include "array_vector.hxx"
58#include "multi_iterator.hxx"
117VIGRA_EXPORT
bool isImage(
char const * filename);
164 VIGRA_EXPORT
const char * getFileName()
const;
222 VIGRA_EXPORT
const char * getFileType()
const;
263 VIGRA_EXPORT
const char * getCompression()
const;
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;
365 std::string m_filename, m_filetype, m_pixeltype, m_comp, m_mode;
366 float m_x_res, m_y_res;
370 double fromMin_, fromMax_, toMin_, toMax_;
374VIGRA_EXPORT VIGRA_UNIQUE_PTR<Encoder> encoder(
const ImageExportInfo & info );
393 enum PixelType { UINT8, INT16, UINT16, INT32, UINT32, FLOAT, DOUBLE };
427 VIGRA_EXPORT
const char * getFileName()
const;
552 std::string m_filename, m_filetype, m_pixeltype;
553 int m_width, m_height, m_num_bands, m_num_extra_bands, m_num_images, m_image_index;
554 float m_x_res, m_y_res;
563VIGRA_EXPORT VIGRA_UNIQUE_PTR<Decoder> decoder(
const ImageImportInfo & info );
Definition array_vector.hxx:514
Two dimensional difference vector.
Definition diff2d.hxx:186
Argument object for the function exportImage().
Definition imageinfo.hxx:134
const char * getMode() const
ImageExportInfo & setCanvasSize(const Size2D &size)
ImageExportInfo & setPixelType(const char *)
ImageExportInfo & setFileType(const char *)
ImageExportInfo & setPosition(const Diff2D &pos)
const char * getPixelType() const
ImageExportInfo & setYResolution(float)
Diff2D getPosition() const
const ICCProfile & getICCProfile() const
Size2D getCanvasSize() const
ImageExportInfo & setXResolution(float)
ImageExportInfo & setFileName(const char *filename)
ImageExportInfo & setICCProfile(const ICCProfile &profile)
ArrayVector< unsigned char > ICCProfile
Definition imageinfo.hxx:352
ImageExportInfo(const char *filename, const char *mode="w")
ImageExportInfo & setCompression(const char *type)
Argument object for the function importImage().
Definition imageinfo.hxx:391
ImageImportInfo(const char *filename, unsigned int page=0)
const char * getPixelType() const
Diff2D getPosition() const
const ICCProfile & getICCProfile() const
MultiArrayShape< 2 >::type shape() const
Size2D getCanvasSize() const
PixelType pixelType() const
int numExtraBands() const
float getYResolution() const
ArrayVector< unsigned char > ICCProfile
Definition imageinfo.hxx:542
void setImageIndex(const int)
const char * getFileType() const
float getXResolution() const
int getImageIndex() const
Two dimensional size object.
Definition diff2d.hxx:483
Class for fixed size vectors.
Definition tinyvector.hxx:1008
std::string impexListExtensions()
List the file extension VIGRA understands.
bool isImage(char const *filename)
Test whether a file is an image format known to VIGRA.
std::string impexListFormats()
List the image formats VIGRA can read and write.