libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Enumerations | Functions | Variables
Photometric Namespace Reference

Manage informations in connection with photometric. More...

Enumerations

enum  ePhotometric {
  UNKNOWN = 0, GRAY = 1, RGB = 2, YCBCR = 3,
  MASK = 4
}
 Available photometrics enumeration.

Functions

ePhotometric fromString (std::string strPh)
 Convert a string to a photometrics enumeration member.
std::string toString (ePhotometric ph)
 Convert a photometric to a string.

Variables

const char * photometric_name []
const int photometric_size = 4
 Number of photometrics compressions.

Detailed Description

Manage informations in connection with photometric.

Author
Institut national de l'information géographique et forestière

Function Documentation

ePhotometric Photometric::fromString ( std::string  strPh)

Convert a string to a photometrics enumeration member.

Parameters
[in]strCompstring to convert
Returns
the binding photometric, UNKNOWN (0) if string is not recognized
std::string Photometric::toString ( ePhotometric  ph)

Convert a photometric to a string.

Parameters
[in]compphotometric to convert
Returns
string namming the photometric

Here is the caller graph for this function:

Variable Documentation

const char* Photometric::photometric_name[]
Initial value:
{
"UNKNOWN",
"GRAY",
"RGB",
"YCBCR",
"MASK"
}