Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Bial::RealColor Class Reference

Class RealColor is used to handle multi-channels in pixels with floating point values. More...

#include <RealColor.hpp>

Collaboration diagram for Bial::RealColor:
Collaboration graph

Public Member Functions

 RealColor (float value=0.0f)
 Constructor. All zero values. More...
 
 RealColor (float chl_0, float chl_1, float chl_2, float chl_3)
 Constructor. More...
 
 RealColor (const RealColor &other)
 Copy Constructor. More...
 
 RealColor (RealColor &&other)
 Move Constructor. More...
 
 RealColor (const Color &other)
 Copy Constructor. More...
 
RealColoroperator= (const RealColor &other)
 Copies color to this color. More...
 
RealColoroperator= (RealColor &&other)
 moves color to this color. More...
 
const float & operator[] (size_t chl) const
 Returns a constant reference of data pointed by channel chl. Same as operator()( chl ). More...
 
float & operator[] (size_t chl)
 Returns the reference for data pointed by channle chl. Same as operator()( chl ). More...
 
const float & operator() (size_t chl) const
 Returns a constant reference of data pointed by channel chl. Same as operator[]( chl ). More...
 
float & operator() (size_t chl)
 Returns the reference for data pointed by channle chl. Same as operator[]( chl ). More...
 
template<class O >
void Print (O &os) const
 Prints color containts to output stream os. More...
 

Detailed Description

Class RealColor is used to handle multi-channels in pixels with floating point values.

Definition at line 22 of file RealColor.hpp.

Constructor & Destructor Documentation

Bial::RealColor::RealColor ( float  value = 0.0f)
explicit

Constructor. All zero values.

Date
2015/Oct/06
Parameters
valueInitial value assigned to all channels.
Returns
none.
Warning
none.
Bial::RealColor::RealColor ( float  chl_0,
float  chl_1,
float  chl_2,
float  chl_3 
)

Constructor.

Date
2015/Oct/06
Parameters
chlThe color channels.
Returns
none.
Warning
none.
Bial::RealColor::RealColor ( const RealColor other)

Copy Constructor.

Date
2015/Oct/06
Version
1.0.00
Parameters
otherOther RealColor.
Returns
none.
Warning
none.
Bial::RealColor::RealColor ( RealColor &&  other)

Move Constructor.

Date
2015/Oct/06
Version
1.0.00
Parameters
unamedOther RealColor.
Returns
none.
Warning
none.
Bial::RealColor::RealColor ( const Color other)

Copy Constructor.

Date
2015/Oct/27
Version
1.0.00
Parameters
otherOther Color.
Returns
none.
Warning
none.

Member Function Documentation

const float& Bial::RealColor::operator() ( size_t  chl) const

Returns a constant reference of data pointed by channel chl. Same as operator[]( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Constant reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
float& Bial::RealColor::operator() ( size_t  chl)

Returns the reference for data pointed by channle chl. Same as operator[]( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
RealColor& Bial::RealColor::operator= ( const RealColor other)

Copies color to this color.

Date
2015/Oct/06
Parameters
unamedRealColor to be assigned to this.
Returns
none.
Warning
none.
RealColor& Bial::RealColor::operator= ( RealColor &&  other)

moves color to this color.

Date
2015/Oct/06
Parameters
unamedRealColor to be assigned to this.
Returns
none.
Warning
none.
const float& Bial::RealColor::operator[] ( size_t  chl) const

Returns a constant reference of data pointed by channel chl. Same as operator()( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Constant reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
float& Bial::RealColor::operator[] ( size_t  chl)

Returns the reference for data pointed by channle chl. Same as operator()( chl ).

Date
2015/Oct/06
Parameters
chla channel to be acessed.
Returns
Reference of data pointed by channel chl.
Warning
Channel bounds are not verified.
template<class O >
void Bial::RealColor::Print ( O &  os) const

Prints color containts to output stream os.

Date
2015/Oct/21
Parameters
osan output stream.
Returns
none.
Warning
none.

Definition at line 331 of file RealColor.hpp.


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