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;
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 };
424 VIGRA_EXPORT
ImageImportInfo(
const char * filename,
unsigned int page = 0 );
425 VIGRA_EXPORT ~ImageImportInfo();
427 VIGRA_EXPORT
const char * getFileName()
const;
439 VIGRA_EXPORT
int width()
const;
443 VIGRA_EXPORT
int height()
const;
480 VIGRA_EXPORT
bool isColor()
const;
514 VIGRA_EXPORT PixelType
pixelType()
const;
519 VIGRA_EXPORT
bool isByte()
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 );
569 #endif // VIGRA_IMAGEINFO_HXX
ImageExportInfo(const char *filename, const char *mode="w")
ImageExportInfo & setFileName(const char *filename)
ImageExportInfo & setYResolution(float)
Size2D getCanvasSize() const
ArrayVector< unsigned char > ICCProfile
Definition: imageinfo.hxx:542
Two dimensional difference vector.
Definition: diff2d.hxx:185
bool isImage(char const *filename)
Test whether a file is an image format known to VIGRA.
const char * getPixelType() const
ImageImportInfo(const char *filename, unsigned int page=0)
const ICCProfile & getICCProfile() const
Two dimensional size object.
Definition: diff2d.hxx:482
Definition: multi_fwd.hxx:63
const char * getFileType() const
const ICCProfile & getICCProfile() const
MultiArrayShape< 2 >::type shape() const
Diff2D getPosition() const
Argument object for the function importImage().
Definition: imageinfo.hxx:390
Argument object for the function exportImage().
Definition: imageinfo.hxx:133
const char * getMode() const
Size2D getCanvasSize() const
ArrayVector< unsigned char > ICCProfile
Definition: imageinfo.hxx:352
ImageExportInfo & setXResolution(float)
ImageExportInfo & setPixelType(const char *)
ImageExportInfo & setICCProfile(const ICCProfile &profile)
int getImageIndex() const
const char * getPixelType() const
float getYResolution() const
std::string impexListExtensions()
List the file extension VIGRA understands.
ImageExportInfo & setCompression(const char *type)
void setImageIndex(const int)
std::string impexListFormats()
List the image formats VIGRA can read and write.
ImageExportInfo & setCanvasSize(const Size2D &size)
PixelType pixelType() const
ImageExportInfo & setPosition(const Diff2D &pos)
Diff2D getPosition() const
float getXResolution() const
ImageExportInfo & setFileType(const char *)
int numExtraBands() const