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);
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_;
374 VIGRA_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;
563 VIGRA_EXPORT VIGRA_UNIQUE_PTR<Decoder> decoder(
const ImageImportInfo & info );
Two dimensional difference vector.
Definition: diff2d.hxx:186
Argument object for the function exportImage().
Definition: imageinfo.hxx:134
ArrayVector< unsigned char > ICCProfile
Definition: imageinfo.hxx:352
const char * getPixelType() const
ImageExportInfo & setYResolution(float)
ImageExportInfo & setCanvasSize(const Size2D &size)
Diff2D getPosition() const
Size2D getCanvasSize() const
ImageExportInfo & setICCProfile(const ICCProfile &profile)
const ICCProfile & getICCProfile() const
ImageExportInfo & setFileType(const char *)
const char * getMode() const
ImageExportInfo & setCompression(const char *type)
ImageExportInfo & setPosition(const Diff2D &pos)
ImageExportInfo & setPixelType(const char *)
ImageExportInfo(const char *filename, const char *mode="w")
ImageExportInfo & setXResolution(float)
ImageExportInfo & setFileName(const char *filename)
Argument object for the function importImage().
Definition: imageinfo.hxx:391
ImageImportInfo(const char *filename, unsigned int page=0)
ArrayVector< unsigned char > ICCProfile
Definition: imageinfo.hxx:542
const char * getPixelType() const
const char * getFileType() const
Diff2D getPosition() const
Size2D getCanvasSize() const
const ICCProfile & getICCProfile() const
PixelType pixelType() const
int numExtraBands() const
float getYResolution() const
void setImageIndex(const int)
MultiArrayShape< 2 >::type shape() const
float getXResolution() const
int getImageIndex() const
Definition: multi_shape.hxx:267
Two dimensional size object.
Definition: diff2d.hxx:483
std::string impexListFormats()
List the image formats VIGRA can read and write.
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.