PixelsBase.H File Reference

#include "Util/Types.H"
#include "Util/TypeTraits.H"
#include "Util/log.H"
#include "Util/Promotions.H"
#include <cmath>
#include <cstdlib>
Include dependency graph for PixelsBase.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TypeTraits< Pixels< T, dim > >
 Specialize TypeTraits to indicate that Pixels is a "trivial" type. More...
class  Pixels< T, dim >
 This is the base Pixel class for a pixel of any size. More...

Enumerations

enum  PixType {
  PixTypeBase, PixTypeRGB, PixTypeHSV, PixTypeYUV,
  PixTypeYIQ, PixTypeHSL, PixTypeLab, PixTypeXYZ,
  PixTypeH2SV1, PixTypeH2SV2, PixTypeH2SV3, PixTypeHyper,
  PixTypeDKL
}
 

Enumerate pixel types as a convenience.

More...

Functions

bool pix_helper::printable (bool val)
 Transform this data into something more printable.
int pix_helper::printable (char val)
short pix_helper::printable (short val)
int pix_helper::printable (int val)
long pix_helper::printable (long val)
float pix_helper::printable (float val)
double pix_helper::printable (double val)
long double pix_helper::printable (long double val)
int pix_helper::printable (unsigned char val)
int pix_helper::printable (unsigned short val)
long pix_helper::printable (unsigned int val)
unsigned long pix_helper::printable (unsigned long val)
template<class T , size_t dim, class Ostream >
Ostream & operator<< (Ostream &os, const Pixels< T, dim > &pixel)
 << operator for pixels with use of Image_IO.C
template<class T , size_t dim, class Istream >
Istream & operator>> (Istream &is, Pixels< T, dim > &pixel)
 >> operator for pixels

Variables

const int RGB_R_UPPER = 255
 RGB ranges R Upper bound.
const int RGB_R_LOWER = 0
 RGB ranges R Lower bound.
const int RGB_G_UPPER = 255
 RGB ranges G Upper bound.
const int RGB_G_LOWER = 0
 RGB ranges G Lower bound.
const int RGB_B_UPPER = 255
 RGB ranges B Upper bound.
const int RGB_B_LOWER = 0
 RGB ranges B Lower bound.
const int HSV_H_UPPER = 360
 HSV Ranges H Upper bound.
const int HSV_H_LOWER = 0
 HSV Ranges H Lower bound.
const int HSV_S_UPPER = 100
 HSV Ranges S Upper bound.
const int HSV_S_LOWER = 0
 HSV Ranges S Lower bound.
const int HSV_V_UPPER = 255
 HSV Ranges V Upper bound.
const int HSV_V_LOWER = 0
 HSV Ranges V Lower bound.
const int HSL_H_UPPER = 360
 HSL Ranges H Upper bound.
const int HSL_H_LOWER = 0
 HSL Ranges H Lower bound.
const int HSL_S_UPPER = 1
 HSL Ranges S Upper bound.
const int HSL_S_LOWER = 0
 HSL Ranges S Lower bound.
const int HSL_L_UPPER = 1
 HSL Ranges V Upper bound.
const int HSL_L_LOWER = 0
 HSL Ranges V Lower bound.
const int YUV_Y_UPPER = 255
 YUV ranges Y Upper bound.
const int YUV_Y_LOWER = 0
 YUV ranges Y Lower bound.
const int YUV_U_UPPER = 255
 YUV ranges U Upper bound.
const int YUV_U_LOWER = 0
 YUV ranges U Lower bound.
const int YUV_V_UPPER = 255
 YUV ranges V Upper bound.
const int YUV_V_LOWER = 0
 YUV ranges V Lower bound.
const int LAB_L_UPPER = 255
 LAB ranges L Upper bound (Normalized to 0 - 255).
const int LAB_L_LOWER = 0
 LAB ranges L Lower bound.
const int LAB_A_UPPER = 255
 LAB ranges A Upper bound (normalized from +/-128).
const int LAB_A_LOWER = 0
 LAB ranges A Lower bound.
const int LAB_B_UPPER = 255
 LAB ranges B Upper bound (normalized from +/-128).
const int LAB_B_LOWER = 0
 LAB ranges B Lower bound.
const double H2SV_H1_UPPER = 1.0
 H2SV ranges (all types) H1 Upper Bound.
const double H2SV_H1_LOWER = 0.0
 H2SV ranges (all types) H1 Lower Bound.
const double H2SV_H2_UPPER = 1.0
 H2SV ranges (all types) H2 Upper Bound.
const double H2SV_H2_LOWER = 0.0
 H2SV ranges (all types) H2 Lower Bound.
const double H2SV_S_UPPER = 1.0
 H2SV ranges (all types) S Upper Bound.
const double H2SV_S_LOWER = 0.0
 H2SV ranges (all types) S Lower Bound.
const double H2SV_V_UPPER = 1.0
 H2SV ranges (all types) V Upper Bound.
const double H2SV_V_LOWER = 0.0
 H2SV ranges (all types) V Lower Bound.

Detailed Description

Basic pixel types version 2.0

Definition in file PixelsBase.H.


Enumeration Type Documentation

enum PixType

Enumerate pixel types as a convenience.

Definition at line 55 of file PixelsBase.H.


Function Documentation

template<class T , size_t dim, class Ostream >
Ostream& operator<< ( Ostream &  os,
const Pixels< T, dim > &  pixel 
) [inline]

<< operator for pixels with use of Image_IO.C

Definition at line 536 of file PixelsBase.H.

template<class T , size_t dim, class Istream >
Istream& operator>> ( Istream &  is,
Pixels< T, dim > &  pixel 
) [inline]

>> operator for pixels

Definition at line 552 of file PixelsBase.H.

References Pixels< T, dim >::p.


Variable Documentation

const double H2SV_H1_LOWER = 0.0

H2SV ranges (all types) H1 Lower Bound.

Definition at line 146 of file PixelsBase.H.

const double H2SV_H1_UPPER = 1.0

H2SV ranges (all types) H1 Upper Bound.

Definition at line 144 of file PixelsBase.H.

const double H2SV_H2_LOWER = 0.0

H2SV ranges (all types) H2 Lower Bound.

Definition at line 150 of file PixelsBase.H.

const double H2SV_H2_UPPER = 1.0

H2SV ranges (all types) H2 Upper Bound.

Definition at line 148 of file PixelsBase.H.

const double H2SV_S_LOWER = 0.0

H2SV ranges (all types) S Lower Bound.

Definition at line 154 of file PixelsBase.H.

const double H2SV_S_UPPER = 1.0

H2SV ranges (all types) S Upper Bound.

Definition at line 152 of file PixelsBase.H.

const double H2SV_V_LOWER = 0.0

H2SV ranges (all types) V Lower Bound.

Definition at line 158 of file PixelsBase.H.

const double H2SV_V_UPPER = 1.0

H2SV ranges (all types) V Upper Bound.

Definition at line 156 of file PixelsBase.H.

const int HSL_H_LOWER = 0

HSL Ranges H Lower bound.

Definition at line 107 of file PixelsBase.H.

const int HSL_H_UPPER = 360

HSL Ranges H Upper bound.

Definition at line 105 of file PixelsBase.H.

const int HSL_L_LOWER = 0

HSL Ranges V Lower bound.

Definition at line 115 of file PixelsBase.H.

const int HSL_L_UPPER = 1

HSL Ranges V Upper bound.

Definition at line 113 of file PixelsBase.H.

const int HSL_S_LOWER = 0

HSL Ranges S Lower bound.

Definition at line 111 of file PixelsBase.H.

const int HSL_S_UPPER = 1

HSL Ranges S Upper bound.

Definition at line 109 of file PixelsBase.H.

const int HSV_H_LOWER = 0

HSV Ranges H Lower bound.

Definition at line 94 of file PixelsBase.H.

const int HSV_H_UPPER = 360

HSV Ranges H Upper bound.

Definition at line 92 of file PixelsBase.H.

const int HSV_S_LOWER = 0

HSV Ranges S Lower bound.

Definition at line 98 of file PixelsBase.H.

const int HSV_S_UPPER = 100

HSV Ranges S Upper bound.

Definition at line 96 of file PixelsBase.H.

const int HSV_V_LOWER = 0

HSV Ranges V Lower bound.

Definition at line 102 of file PixelsBase.H.

const int HSV_V_UPPER = 255

HSV Ranges V Upper bound.

Definition at line 100 of file PixelsBase.H.

const int LAB_A_LOWER = 0

LAB ranges A Lower bound.

Definition at line 137 of file PixelsBase.H.

const int LAB_A_UPPER = 255

LAB ranges A Upper bound (normalized from +/-128).

Definition at line 135 of file PixelsBase.H.

const int LAB_B_LOWER = 0

LAB ranges B Lower bound.

Definition at line 141 of file PixelsBase.H.

const int LAB_B_UPPER = 255

LAB ranges B Upper bound (normalized from +/-128).

Definition at line 139 of file PixelsBase.H.

const int LAB_L_LOWER = 0

LAB ranges L Lower bound.

Definition at line 133 of file PixelsBase.H.

const int LAB_L_UPPER = 255

LAB ranges L Upper bound (Normalized to 0 - 255).

Definition at line 131 of file PixelsBase.H.

const int RGB_B_LOWER = 0

RGB ranges B Lower bound.

Definition at line 89 of file PixelsBase.H.

const int RGB_B_UPPER = 255

RGB ranges B Upper bound.

Definition at line 87 of file PixelsBase.H.

const int RGB_G_LOWER = 0

RGB ranges G Lower bound.

Definition at line 85 of file PixelsBase.H.

const int RGB_G_UPPER = 255

RGB ranges G Upper bound.

Definition at line 83 of file PixelsBase.H.

const int RGB_R_LOWER = 0

RGB ranges R Lower bound.

Definition at line 81 of file PixelsBase.H.

const int RGB_R_UPPER = 255

RGB ranges R Upper bound.

Definition at line 79 of file PixelsBase.H.

const int YUV_U_LOWER = 0

YUV ranges U Lower bound.

Definition at line 124 of file PixelsBase.H.

const int YUV_U_UPPER = 255

YUV ranges U Upper bound.

Definition at line 122 of file PixelsBase.H.

const int YUV_V_LOWER = 0

YUV ranges V Lower bound.

Definition at line 128 of file PixelsBase.H.

const int YUV_V_UPPER = 255

YUV ranges V Upper bound.

Definition at line 126 of file PixelsBase.H.

const int YUV_Y_LOWER = 0

YUV ranges Y Lower bound.

Definition at line 120 of file PixelsBase.H.

const int YUV_Y_UPPER = 255

YUV ranges Y Upper bound.

Definition at line 118 of file PixelsBase.H.

Generated on Sun May 8 08:12:54 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3