Enrollment 28.2.0
Loading...
Searching...
No Matches

It contains all supported image types. More...

#include <ImageType.h>

Collaboration diagram for ImageType:

Public Types

enum  Type : uint8_t {
  BMP , PNG , WSQ , IRAW ,
  JPG , TIFF , JPG2000 , WEBP
}
 Type of supported images. More...

Public Member Functions

constexpr ImageType (Type t)
 Construct ImageType from enum Type.
constexpr ImageType (uint8_t t)
 Construct ImageType from basic type When value does not match enum value then UNKNOWN is set.

Static Public Member Functions

static ImageType FromFileExtension (const std::string &extension)
 Construct ImageType from file extension.

Static Public Attributes

static constexpr uint8_t UNKNOWN = 255
 Unknown image type.

Detailed Description

It contains all supported image types.

Member Enumeration Documentation

◆ Type

enum Type : uint8_t

Type of supported images.

Enumerator
BMP 

Windows bitmaps - bmp, dib.

Raster graphics image file format developed by Microsoft. [18]

PNG 

Portable Network Graphics - png.

PNG supports palette-based images (with palettes of 24-bit RGB or 32-bit RGBA colors), grayscale images (with or without an alpha channel for transparency), and full-color non-palette-based RGB or RGBA images. [14]

WSQ 

Wavelet Scalar Quantization - wsq.

WSQ (Wavelet Scalar Quantization), also known as FBI Print Format, is a raster image file format used for storing images of prints. It uses lossy wavelet compression, and supports only grayscale images.

IRAW 

Innovatrics proprietary RAW image - iraw.

The format is IRAW (4 bytes), width (4 bytes, big endian unsigned int), height (4 bytes, big endian unsigned int), dpi (4 bytes, big endian unsigned int), type (4 bytes, big endian unsigned int), data.

JPG 

Joint Photographic Experts Group - jpeg, jpg, jpe.

JPEG is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. [12]

TIFF 

Tagged Image File Format - tiff, tif.

TIF is an image file format for storing raster graphics images, popular among graphic artists, the publishing industry, and photographers. [15]

JPG2000 

JPEG 2000 is an image compression standard and coding system - jp2.

JPEG 2000 (JP2) is an image compression standard and coding system. It was developed from 1997 to 2000 by a Joint Photographic Experts Group committee with the intention of superseding their original JPEG standard (created in 1992) [13]

WEBP 

WebP is an image file format developed by Google - webp.

It is intended as a replacement for JPEG, PNG, and GIF file formats. It supports both lossy and lossless compression as well as animation and alpha transparency. [16]

Constructor & Destructor Documentation

◆ ImageType() [1/2]

ImageType ( Type t)
inlineexplicitconstexpr

Construct ImageType from enum Type.

Parameters
tenum Type value

Referenced by FromFileExtension().

Here is the caller graph for this function:

◆ ImageType() [2/2]

ImageType ( uint8_t t)
inlineexplicitconstexpr

Construct ImageType from basic type When value does not match enum value then UNKNOWN is set.

Parameters
tenum value
Exceptions
ImageExceptionwhen type is unknown

Member Function Documentation

◆ FromFileExtension()

ImageType FromFileExtension ( const std::string & extension)
inlinestatic

Construct ImageType from file extension.

Exceptions
ImageExceptionwhen file extension is unknown
Parameters
extensionextension with '.' e.g. '.bmp'
Returns
ImageType

References BMP, ImageType(), IRAW, JPG, JPG2000, PNG, TIFF, ImageException::UNKNOWN_IMAGE, WEBP, and WSQ.

Referenced by ImageFileSaver::Save().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: