$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::value::float01 Class Reference

#include <mln/value/float01.hh>

Public Member Functions

 float01 ()
template<unsigned n>
 float01 (const float01_< n > &val)
 float01 (unsigned nbits, float val)
unsigned nbits () const
 operator float () const
float01set_nbits (unsigned nbits)
const float01 to_nbits (unsigned nbits) const
float value () const
unsigned long value_ind () const

Protected Attributes

unsigned nbits_
unsigned long val_

Public Types

typedef Floating< void > category
typedef std::pair< unsigned,
unsigned long > 
enc
typedef float equiv
typedef float01 exact_t

Detailed Description

Class for floating values restricted to the interval [0..1] and discretized with n bits.

Definition at line 57 of file float01.hh.

Constructor & Destructor Documentation

mln::value::float01::float01 ( )

Ctor.

template<unsigned n>
mln::value::float01::float01 ( const float01_< n > &  val)

Ctor.

mln::value::float01::float01 ( unsigned  nbits,
float  val 
)

Ctor.

Member Function Documentation

unsigned mln::value::float01::nbits ( ) const

Access to the encoding size.

mln::value::float01::operator float ( ) const

Conversion to float.

float01& mln::value::float01::set_nbits ( unsigned  nbits)

Set the encoding size to nbits.

const float01 mln::value::float01::to_nbits ( unsigned  nbits) const

Return an equivalent gray encoded on nbits bits.

float mln::value::float01::value ( ) const

Access to std type.

unsigned long mln::value::float01::value_ind ( ) const

Access to the position in the quantized interval.

Member Data Documentation

unsigned mln::value::float01::nbits_
protected

Encoding size.

Definition at line 101 of file float01.hh.

unsigned long mln::value::float01::val_
protected

Value.

Definition at line 104 of file float01.hh.

Member Typedef Documentation

typedef Floating<void> mln::value::Floating< float01 >::category
inherited

Definition at line 64 of file floating.hh.

typedef std::pair<unsigned, unsigned long> mln::value::float01::enc

Encoding associated type.

Definition at line 62 of file float01.hh.

Equivalent associated type.

Definition at line 65 of file float01.hh.

typedef float01 mln::Object< float01 >::exact_t
inherited

Definition at line 105 of file object.hh.