Namespaces | Classes | Typedefs | Functions

mln::value Namespace Reference

Namespace of materials related to pixel value types. More...

Namespaces

namespace  impl
 

Implementation namespace of value namespace.


Classes

class  float01
 Class for floating values restricted to the interval [0..1] and discretized with n bits. More...
struct  float01_f
 Class for floating values restricted to the interval [0..1]. More...
struct  graylevel
 General gray-level class on n bits. More...
struct  graylevel_f
 General gray-level class on n bits. More...
struct  int_s
 Signed integer value class. More...
struct  int_u
 Unsigned integer value class. More...
struct  int_u_sat
 Unsigned integer value class with saturation behavior. More...
struct  Integer
 Concept of integer. More...
struct  Integer< void >
 Category flag type. More...
struct  label
 Label value class. More...
struct  lut_vec
 Class that defines FIXME. More...
class  proxy
 Generic proxy class for an image pixel value. More...
struct  rgb
 Color class for red-green-blue where every component is n-bit encoded. More...
struct  set
 Class that defines the set of values of type T. More...
class  sign
 The sign class represents the value type composed by the set (-1, 0, 1) sign value type is a subset of the int value type. More...
struct  stack_image
 Stack image class. More...
struct  super_value< sign >
 Specializations: More...
struct  value_array
 Generic array class over indexed by a value set with type T. More...

Typedefs

typedef float01_< 16 > float01_16
 Alias for 16 bit float01.
typedef float01_< 8 > float01_8
 Alias for 8 bit float01.
typedef graylevel< 16 > gl16
 Alias for 16 bit graylevel.
typedef graylevel< 8 > gl8
 Alias for 8 bit graylevel.
typedef graylevel_f glf
 Alias for graylevels encoded by float.
typedef int_s< 16 > int_s16
 Alias for signed 16-bit integers.
typedef int_s< 32 > int_s32
 Alias for signed 32-bit integers.
typedef int_s< 8 > int_s8
 Alias for signed 8-bit integers.
typedef int_u< 12 > int_u12
 Alias for unsigned 12-bit integers.
typedef int_u< 16 > int_u16
 Alias for unsigned 16-bit integers.
typedef mln::value::int_u< 32 > int_u32
 Alias for unsigned 32-bit integers.
typedef mln::value::int_u< 8 > int_u8
 Alias for unsigned 8-bit integers.
typedef label< 16 > label_16
 Alias for 16-bit integers.
typedef label< 32 > label_32
 Alias for 32-bit integers.
typedef mln::value::label< 8 > label_8
 Alias for 8-bit labels.
typedef rgb< 16 > rgb16
 Color class for red-green-blue where every component is 16-bit encoded.
typedef rgb< 8 > rgb8
 Color class for red-green-blue where every component is 8-bit encoded.

Functions

template<typename Dest , typename Src >
Dest cast (const Src &src)
 Cast a value src from type Src to type Dest.
template<typename V >
internal::equiv_< V >::ret equiv (const mln::Value< V > &v)
 Access to the equivalent value.
template<unsigned n>
rgb< n >::interop operator+ (const rgb< n > &lhs, const rgb< n > &rhs)
 Addition.
template<typename H , typename S , typename L >
hsl_< H, S, L > operator+ (const hsl_< H, S, L > &lhs, const hsl_< H, S, L > &rhs)
 Addition.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const label< n > &l)
 Print a label l into the output stream ostr.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const rgb< n > &c)
 Print an rgb c into the output stream ostr.
std::ostream & operator<< (std::ostream &ostr, const graylevel_f &g)
 Op<<.
template<typename T >
std::ostream & operator<< (std::ostream &ostr, const scalar_< T > &s)
 Print a scalar s in an output stream ostr.
template<typename H , typename S , typename L >
std::ostream & operator<< (std::ostream &ostr, const hsl_< H, S, L > &c)
 Print an hsl c into the output stream ostr.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const graylevel< n > &g)
 Op<<.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const float01_< n > &f)
 Op<<.
std::ostream & operator<< (std::ostream &ostr, const sign &i)
 Print an signed integer i into the output stream ostr.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const int_u< n > &i)
 Print an unsigned integer i into the output stream ostr.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const int_s< n > &i)
 Print an signed integer i into the output stream ostr.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const int_u_sat< n > &i)
 Print a saturated unsigned integer i into the output stream ostr.
bool operator== (const sign &lhs, const sign &rhs)
 Comparaison operator.
template<typename V >
other (const V &val)
 Give an other value than val.

template<typename H , typename S , typename L >
hsl_< H, S, L > operator- (const hsl_< H, S, L > &lhs, const hsl_< H, S, L > &rhs)
 Subtraction.

template<typename H , typename S , typename L , typename S2 >
hsl_< H, S, L > operator* (const hsl_< H, S, L > &lhs, const mln::value::scalar_< S2 > &s)
 Product.

template<typename H , typename S , typename L , typename S2 >
hsl_< H, S, L > operator/ (const hsl_< H, S, L > &lhs, const mln::value::scalar_< S2 > &s)
 Division.

template<typename H , typename S , typename L >
bool operator== (const hsl_< H, S, L > &lhs, const hsl_< H, S, L > &rhs)
 Comparison.

template<unsigned n>
rgb< n >::interop operator- (const rgb< n > &lhs, const rgb< n > &rhs)
 Subtraction.

template<unsigned n, typename S >
rgb< n >::interop operator* (const rgb< n > &lhs, const mln::value::scalar_< S > &s)
 Product.

template<unsigned n, typename S >
rgb< n >::interop operator/ (const rgb< n > &lhs, const mln::value::scalar_< S > &s)
 Division.

template<typename I >
stack_image< 2, const I > stack (const Image< I > &ima1, const Image< I > &ima2)
 Shortcut to build a stack with two images.

Detailed Description

Namespace of materials related to pixel value types.


Typedef Documentation

typedef float01_<16> mln::value::float01_16

Alias for 16 bit float01.

Definition at line 45 of file float01_16.hh.

typedef float01_<8> mln::value::float01_8

Alias for 8 bit float01.

Definition at line 45 of file float01_8.hh.

Alias for 16 bit graylevel.

Definition at line 45 of file gl16.hh.

Alias for 8 bit graylevel.

Definition at line 45 of file gl8.hh.

Alias for graylevels encoded by float.

Definition at line 44 of file glf.hh.

Alias for signed 16-bit integers.

Definition at line 45 of file int_s16.hh.

Alias for signed 32-bit integers.

Definition at line 45 of file int_s32.hh.

Alias for signed 8-bit integers.

Definition at line 45 of file int_s8.hh.

Alias for unsigned 12-bit integers.

Definition at line 45 of file int_u12.hh.

Alias for unsigned 16-bit integers.

Definition at line 45 of file int_u16.hh.

Alias for unsigned 32-bit integers.

Definition at line 45 of file int_u32.hh.

Alias for unsigned 8-bit integers.

Definition at line 44 of file int_u8.hh.

Alias for 16-bit integers.

Definition at line 44 of file label_16.hh.

Alias for 32-bit integers.

Definition at line 44 of file label_32.hh.

Alias for 8-bit labels.

Definition at line 44 of file label_8.hh.

typedef rgb<16> mln::value::rgb16

Color class for red-green-blue where every component is 16-bit encoded.

Definition at line 45 of file rgb16.hh.

typedef rgb<8> mln::value::rgb8

Color class for red-green-blue where every component is 8-bit encoded.

Definition at line 45 of file rgb8.hh.


Function Documentation

template<typename Dest , typename Src >
Dest mln::value::cast ( const Src &  src  )  [inline]

Cast a value src from type Src to type Dest.

Definition at line 85 of file value/cast.hh.

template<typename V >
internal::equiv_< V >::ret mln::value::equiv ( const mln::Value< V > &  v  )  [inline]

Access to the equivalent value.

Definition at line 153 of file equiv.hh.

Referenced by mln::labeling::superpose().

template<unsigned n, typename S >
rgb< n >::interop mln::value::operator* ( const rgb< n > &  lhs,
const mln::value::scalar_< S > &  s 
) [inline]

Product.

Definition at line 717 of file value/rgb.hh.

template<typename H , typename S , typename L , typename S2 >
hsl_< H, S, L > mln::value::operator* ( const hsl_< H, S, L > &  lhs,
const mln::value::scalar_< S2 > &  s 
)

Product.

Definition at line 357 of file hsl.hh.

template<unsigned n>
rgb< n >::interop mln::value::operator+ ( const rgb< n > &  lhs,
const rgb< n > &  rhs 
) [inline]

Addition.

{

Definition at line 663 of file value/rgb.hh.

template<typename H , typename S , typename L >
hsl_< H, S, L > mln::value::operator+ ( const hsl_< H, S, L > &  lhs,
const hsl_< H, S, L > &  rhs 
)

Addition.

{

Definition at line 337 of file hsl.hh.

template<unsigned n>
rgb< n >::interop mln::value::operator- ( const rgb< n > &  lhs,
const rgb< n > &  rhs 
) [inline]

Subtraction.

Definition at line 690 of file value/rgb.hh.

template<typename H , typename S , typename L >
hsl_< H, S, L > mln::value::operator- ( const hsl_< H, S, L > &  lhs,
const hsl_< H, S, L > &  rhs 
)

Subtraction.

Definition at line 347 of file hsl.hh.

template<unsigned n, typename S >
rgb< n >::interop mln::value::operator/ ( const rgb< n > &  lhs,
const mln::value::scalar_< S > &  s 
) [inline]

Division.

Definition at line 735 of file value/rgb.hh.

template<typename H , typename S , typename L , typename S2 >
hsl_< H, S, L > mln::value::operator/ ( const hsl_< H, S, L > &  lhs,
const mln::value::scalar_< S2 > &  s 
)

Division.

Definition at line 367 of file hsl.hh.

template<typename T >
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const scalar_< T > &  s 
) [inline]

Print a scalar s in an output stream ostr.

Definition at line 130 of file scalar.hh.

std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const sign &  i 
) [inline]

Print an signed integer i into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] i An sign value
Returns:
The modified output stream ostr.

Definition at line 184 of file value/sign.hh.

References mln::debug::format().

template<unsigned n>
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const int_s< n > &  i 
) [inline]

Print an signed integer i into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] i An signed integer.
Returns:
The modified output stream ostr.

Definition at line 260 of file int_s.hh.

References mln::debug::format().

template<unsigned n>
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const graylevel< n > &  g 
) [inline]

Op<<.

Definition at line 591 of file graylevel.hh.

template<unsigned n>
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const int_u< n > &  i 
) [inline]

Print an unsigned integer i into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] i An unsigned integer.
Returns:
The modified output stream ostr.

Definition at line 357 of file int_u.hh.

References mln::debug::format().

template<unsigned n>
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const int_u_sat< n > &  i 
) [inline]

Print a saturated unsigned integer i into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] i A saturated unsigned integer.
Returns:
The modified output stream ostr.

Definition at line 220 of file int_u_sat.hh.

References mln::debug::format().

template<unsigned n>
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const rgb< n > &  c 
) [inline]

Print an rgb c into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] c An rgb.
Returns:
The modified output stream ostr.

Definition at line 743 of file value/rgb.hh.

References mln::debug::format().

template<unsigned n>
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const float01_< n > &  f 
) [inline]

Op<<.

Definition at line 253 of file float01_.hh.

template<typename H , typename S , typename L >
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const hsl_< H, S, L > &  c 
) [inline]

Print an hsl c into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] c An rgb.
Returns:
The modified output stream ostr.

Definition at line 326 of file hsl.hh.

References mln::debug::format().

template<unsigned n>
std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const label< n > &  l 
) [inline]

Print a label l into the output stream ostr.

Parameters:
[in,out] ostr An output stream.
[in] l A label.
Returns:
The modified output stream ostr.

Definition at line 353 of file label.hh.

References mln::debug::format().

std::ostream & mln::value::operator<< ( std::ostream &  ostr,
const graylevel_f &  g 
) [inline]

Op<<.

Definition at line 458 of file graylevel_f.hh.

References mln::value::graylevel_f::value().

template<typename H , typename S , typename L >
bool mln::value::operator== ( const hsl_< H, S, L > &  lhs,
const hsl_< H, S, L > &  rhs 
)

Comparison.

Definition at line 376 of file hsl.hh.

bool mln::value::operator== ( const sign &  lhs,
const sign &  rhs 
) [inline]

Comparaison operator.

Definition at line 190 of file value/sign.hh.

template<typename V >
V mln::value::other ( const V &  val  )  [inline]

Give an other value than val.

Definition at line 115 of file other.hh.

template<typename I >
stack_image< 2, const I > mln::value::stack ( const Image< I > &  ima1,
const Image< I > &  ima2 
) [inline]

Shortcut to build a stack with two images.

Definition at line 306 of file stack.hh.