DominantColor Class Reference

#include <DominantColor.h>

Inherits DescriptorBase.

List of all members.

Public Member Functions

 DominantColor ()
 constuctor
int GetDominantColorsNumber ()
 get the number of dominant colors
bool GetColorSpacePresent ()
 get presence of color space
bool GetColorQuantizationPresent ()
 get presence of quantization
bool GetVariancePresent ()
 get presence of variance
bool GetSpatialCoherencyPresent ()
 get presence of spatial coherency
void SetDominantColorsNumber (int dc_number)
 set the number of dominant colors
void SetColorSpacePresent (bool colspcpres)
 Set presence of color space.
void SetColorQuantizationPresent (bool colquantpres)
 Set presence of quantization.
void SetVariancePresent (bool varpres)
 Set presence of variance.
void SetSpatialCoherencyPresent (bool spcohpres)
 Set presence of spatial coherency.
int Initialise (bool varPresent, bool spCoher, bool colSpacePresent, bool colQuantPres)
 initialise the descriptor with the given parameters
void PrintElements ()
 prints the descriptor vector
std::string toString ()
 convert descriptor data to string
float match (DominantColor *domCol)
 match descriptors and return distance

Public Attributes

int m_SpatialCoherency
 spatial coherency value
std::vector< DomColorm_dc
 vector of dominant colors

Private Member Functions

float d_eucl (std::vector< int > v1, std::vector< int > v2)
 euclidean distance between two vectors

Private Attributes

int m_DominantColorsNumber
 number of the dominant colors
bool m_ColorSpacePresent
 presence of color space
bool m_ColorQuantizationPresent
 presence of quantization
bool m_VariancePresent
 presence of variance
bool m_SpatialCoherencyPresent
 presence of spatial coherency

Friends

std::ostream & operator<< (std::ostream &os, DominantColor &s)


Constructor & Destructor Documentation

DominantColor::DominantColor (  ) 

constuctor


Member Function Documentation

int DominantColor::GetDominantColorsNumber (  )  [inline]

get the number of dominant colors

bool DominantColor::GetColorSpacePresent (  )  [inline]

get presence of color space

bool DominantColor::GetColorQuantizationPresent (  )  [inline]

get presence of quantization

bool DominantColor::GetVariancePresent (  )  [inline]

get presence of variance

bool DominantColor::GetSpatialCoherencyPresent (  )  [inline]

get presence of spatial coherency

void DominantColor::SetDominantColorsNumber ( int  dc_number  ) 

set the number of dominant colors

void DominantColor::SetColorSpacePresent ( bool  colspcpres  )  [inline]

Set presence of color space.

void DominantColor::SetColorQuantizationPresent ( bool  colquantpres  )  [inline]

Set presence of quantization.

void DominantColor::SetVariancePresent ( bool  varpres  )  [inline]

Set presence of variance.

void DominantColor::SetSpatialCoherencyPresent ( bool  spcohpres  )  [inline]

Set presence of spatial coherency.

int DominantColor::Initialise ( bool  varPresent,
bool  spCoher,
bool  colSpacePresent,
bool  colQuantPres 
)

initialise the descriptor with the given parameters

void DominantColor::PrintElements ( void   )  [virtual]

prints the descriptor vector

Reimplemented from DescriptorBase.

std::string DominantColor::toString (  ) 

convert descriptor data to string

Reimplemented from DescriptorBase.

float DominantColor::match ( DominantColor domCol  ) 

match descriptors and return distance

float DominantColor::d_eucl ( std::vector< int >  v1,
std::vector< int >  v2 
) [private]

euclidean distance between two vectors


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
DominantColor s 
) [friend]


Member Data Documentation

spatial coherency value

vector of dominant colors

number of the dominant colors

presence of color space

presence of quantization

presence of variance

presence of spatial coherency


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

Generated on Tue Oct 14 16:35:18 2008 for vd by  doxygen 1.5.5