#include <DominantColor.h>
Inherits DescriptorBase.
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< DomColor > | m_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) |
DominantColor::DominantColor | ( | ) |
constuctor
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] |
std::string DominantColor::toString | ( | ) |
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
std::ostream& operator<< | ( | std::ostream & | os, | |
DominantColor & | s | |||
) | [friend] |
spatial coherency value
std::vector<DomColor> DominantColor::m_dc |
vector of dominant colors
int DominantColor::m_DominantColorsNumber [private] |
number of the dominant colors
bool DominantColor::m_ColorSpacePresent [private] |
presence of color space
bool DominantColor::m_ColorQuantizationPresent [private] |
presence of quantization
bool DominantColor::m_VariancePresent [private] |
presence of variance
bool DominantColor::m_SpatialCoherencyPresent [private] |
presence of spatial coherency