#include <Descriptor.h>
Public Member Functions | |
Descriptor (DescriptorTypeVector descrTypeList) | |
Constructor. | |
~Descriptor () | |
destructor | |
DominantColor * | GetDominantColorDescriptor () |
ScalableColor * | GetScalableColorDescriptor () |
ColorLayout * | GetColorLayoutDescriptor () |
ColorStructure * | GetColorStructureDescriptor () |
EdgeHistogram * | GetEdgeHistogramDescriptor () |
HomogeneousTexture * | GetHomogeneousTextureDescriptor () |
RegionShape * | GetRegionShapeDescriptor () |
ContourShape * | GetContourShapeDescriptor () |
void | PrintElements () |
Prints the element of all the descriptors. | |
void | toTxtFile (char *txtFilename) |
Saves the descriptor vectors to a txt file on the disk. | |
int | Initialise () |
descriptor initialisation, including initialisation of all included descriptors | |
void | SetParameters (char *parameterFile) |
set the parameters from a parameter text file | |
Public Attributes | |
std::vector< DescriptorBase * > | content |
vector of DescriptorBase, which it can be all descriptors eg. DC, SC, etc... | |
DescriptorTypeVector | typeVector |
vector of DescriptorTypes which are the types of descriptors in class member content | |
Parameters | paramtrs |
parameters for the descriptor extraction | |
Private Member Functions | |
bool | includes (DescriptorType type) |
returns true if type is included in the DescriptorTypeVector class member |
Descriptor::Descriptor | ( | DescriptorTypeVector | descrTypeList | ) |
Constructor.
Descriptor::~Descriptor | ( | ) |
destructor
DominantColor* Descriptor::GetDominantColorDescriptor | ( | ) |
return a pointer to the Dominant Color Descriptor of the Descriptor object Returns NULL if it does not exist
ScalableColor* Descriptor::GetScalableColorDescriptor | ( | ) |
return a pointer to the Scalable Color Descriptor of the Descriptor object Returns NULL if it does not exist
ColorLayout* Descriptor::GetColorLayoutDescriptor | ( | ) |
return a pointer to the Color Layout Descriptor of the Descriptor object Returns NULL if it does not exist
ColorStructure* Descriptor::GetColorStructureDescriptor | ( | ) |
return a pointer to the Color Structure Descriptor of the Descriptor object Returns NULL if it does not exist
EdgeHistogram* Descriptor::GetEdgeHistogramDescriptor | ( | ) |
return a pointer to the Edge Histogram Descriptor of the Descriptor object Returns NULL if it does not exist
HomogeneousTexture* Descriptor::GetHomogeneousTextureDescriptor | ( | ) |
return a pointer to the Homogeneous Texture Descriptor of the Descriptor object Returns NULL if it does not exist
RegionShape* Descriptor::GetRegionShapeDescriptor | ( | ) |
return a pointer to the Region Shape Descriptor of the Descriptor object Returns NULL if it does not exist
ContourShape* Descriptor::GetContourShapeDescriptor | ( | ) |
return a pointer to the Contour Shape Descriptor of the Descriptor object Returns NULL if it does not exist
void Descriptor::PrintElements | ( | ) |
Prints the element of all the descriptors.
void Descriptor::toTxtFile | ( | char * | txtFilename | ) |
Saves the descriptor vectors to a txt file on the disk.
int Descriptor::Initialise | ( | ) |
descriptor initialisation, including initialisation of all included descriptors
void Descriptor::SetParameters | ( | char * | parameterFile | ) |
set the parameters from a parameter text file
bool Descriptor::includes | ( | DescriptorType | type | ) | [private] |
returns true if type is included in the DescriptorTypeVector class member
std::vector<DescriptorBase*> Descriptor::content |
vector of DescriptorBase, which it can be all descriptors eg. DC, SC, etc...
vector of DescriptorTypes which are the types of descriptors in class member content
parameters for the descriptor extraction