[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
ImageImportInfo Class Reference | ![]() |
---|
Argument object for the function importImage(). See importImage() for a usage example. This object must be used to read an image from disk and enquire about its properties. More...
#include "vigra/imageinfo.hxx"
Public Methods | |
ImageImportInfo (const char *) | |
const char * | getFileType () const |
int | width () const |
int | height () const |
int | numBands () const |
Size2D | size () const |
bool | isGrayscale () const |
bool | isColor () const |
const char * | getPixelType () const |
PixelType | pixelType () const |
deprecated: use getPixelType() | |
bool | isByte () const |
float | getXResolution () const |
float | getYResolution () const |
Detailed Description |
#include "vigra/imageinfo.hxx"
Namespace: vigra
convert.cxx, edge.cxx, invert.cxx, invert_explicitly.cxx, profile.cxx, pyramid.cxx, resize.cxx, smooth.cxx, subimage.cxx, and watershed.cxx.
|
Construct ImageImportInfo object. The image with the given filename is read into memory. The file type will be determined by the first few bytes of the file (magic number). Recognized file types:
|
|
Get the file type of the image associated with this info object. See ImageImportInfo::ImageImportInfo for a list of the available file types.
|
|
Query the pixel type of the image. Possible values are:
|
|
Returns the image resolution in horizontal direction |
|
Returns the image resolution in vertical direction |
|
Get height of the image.
|
|
Returns true if the image has 1 byte per pixel (gray) or 3 bytes per pixel (RGB). |
|
Returns true if the image is colored (RGB). |
|
Returns true if the image is gray scale.
|
|
Get the number bands in the image. |
|
Get size of the image. |
|
Get width of the image.
|
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|