Enumerations | |
enum | ImageType { Automatic, Unknown, PNM, JPEG, BMP, PNG, TIFF, PS, EPS, TXT } |
Possible image types.
Automatic | Placeholder type telling save_image to deduce the type from the filename. |
Unknown | Unknown image type (can be returned by string_to_image_type. |
PNM |
PNM image format (PBM, PGM or PPM).
This writes 8 or 16 bit raw PGMs or PPMs. PBM is not currently supported |
JPEG |
JPEG image format.
This is a compressed (lossy) image format, but defaults to 95% quality, which has very few compression artefacts. This image type is only present if libjpeg is available. RGB and Greyscale JPEGs are supported |
BMP | Windows BMP (or DIB) format. Uncompressed 8 bit grey scale and 24 bit RGB are supported. |
PNG |
PNG image format.
1, 8 and 16 bit, Greyscale, RGB and RGBA images are supported. This image type is only present if libpng is available. |
TIFF |
TIFF image format.
1, 8, 16, 32 (float) and 64 (double) suported. Greyscale, RGB and RGBA supported. This image type is only present if libtiff is available. G4 FAX encoding is used for bools, otherwise "Deflate" compression is used. |
PS |
Postscript format.
This outputs a bare PostScript image with the coordinate system set up to that (x,y) corresponds to pixel (x,y), with (0,0) being at the top left of the pixel (0,0). The Y axis is therefore inverted compared to normal postscript drawing, but is image aligned. To get the drawing axes aligned with the centre of the pixels, write the postscript command ".5 .5 translate" after the image. The image data in encoded in ASCII-85 for portability. Helper functions are provided for generating EPS figures. See CVD::output_eps_header and CVD::output_eps_footer |
EPS | EPS format. This outputs a complete EPS (Encapsulated PostScript) figure. |
TXT |
Plain text format.
Grey-scale floating point only. This can be read in to MATLAB with the load() function. There is no metadata, so it is not possible to support multiple types. |
Definition at line 129 of file image_io.h.