CVD 0.8
Enumerations
CVD::ImageType Namespace Reference

Contains the enumeration of possible image types. More...

Enumerations

enum  ImageType {
  Automatic, Unknown, PNM, JPEG,
  BMP, PNG, TIFF, PS,
  EPS, TXT, CVD, FITS
}

Detailed Description

Contains the enumeration of possible image types.


Enumeration Type Documentation

Possible image types.

Enumerator:
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.

CVD 

CVD image format.

8 bit Grey-scale, RGB and RGBA images are currently supported. Files of this type have a simple PNM-like header, but use a lossless compression scheme (line-wise prediction + Huffman).

FITS 

FITS images.

Supports (native) byte, short, unsigned short, int, float and double of greyscale, RGB and RGBA. Signed char is supported lossley but inefficiently.

Definition at line 132 of file image_io.h.