Photo.cpp
* Deleted comments.
include/KMajority.h
src/KMajority.cpp
* Implemented k-majority clustering algorithm.

test/KMajority_test.cpp
* Created stub source file for testing k-majority implementation.
main.cpp
* Added doxygen documentation for functions printDescriptors,
printKeypoints and printParams.
* Implemented functions save and writeFeaturesToFile to save computed
features into a plain text file.
* Added code for testing new functions and k-majority implementation.
include/KMajority.h
src/KMajority.cpp
* Changed int for unsigned int where it serves.
src/KMajority.cpp
* Changed int for unsigned int to be consistent with the class
definition.
* Added commented code implementing handling of empty clusters.
* Changed hamming distance computation because mine was wrong because of
a bad assumption on the structure of the binary descriptors.
src/main.cpp
* Fixed function for printing binary descriptors, i misunderstood
totally the structure of the binary descriptors.
src/KMajority.cpp
* Solved warnings about uint vs. int comparison.

src/main.cpp
* Commented code that might be wrong because of mismisassumption of
binary descriptors structure.
* Solved warnings about uint vs. int comparison.
* Fixed function for writing feature descriptors to plain text file.
src/DBriefDescriptorExtractor.cpp
* Fixed conversion of descriptor representation due to misunderstanding
of binary descriptors in OpenCV where they are stored in chunks of 8
bits.
include/KMajority.h
* Added comment about units of dim attribute.

src/KMajority.cpp
* Initialized list of cluster each transaction belongs to and the
distance to with reasonable values.
* Code cleaning and commenting.

src/main.cpp
* Uncommented code for testing KMajority implementation.
* Changed way of handling errors to effectively show error messages.
include/KMajority.h
* Added attribute to class KMajority for holding number of transaction
assigned to each cluster.
* Added accessor methods for attributes cluster_counts and centroids to
class KMajority.
src/KMajority.cpp
* Properly initializing cluster where transactions are assigned to as
well as its distance to it.
* Storing number of data instances assigned to each cluster in the
newly created variable cluster_counts.
* Re-implemented method KMajority::computeCentroids because it was
founded on a total misunderstanding of the structure of binary features
as stored inside OpenCV.
src/main.cpp
* Code cleaning
* Fixed error handling in order to effectively show error messages.
include/KMajority.h
* Added accessor method for attribute k, the number of clusters.

src/KMajority.cpp
* In function initCentroids, not seeding random numbers generator
anymore, it was factored out to the main function.
* In function quantize, computing time spent on quantizing descriptors.
* In function computeCentroids, saved some operations by computing the
new byte each 8 bits.
* In function computeCentroids, changed type of structure holding
cumulative count of bits component wise.
* In function computeCentroids, implemented random tie breaking.

src/main.cpp
* Seeding random numbers generator with current time.
* Using accessor method for number of clusters.
src/KMajority.cpp
* TODO cleaning.
.cproject
Makefile
* Included and linked librarys for using DBoW2.

src/KMajority.cpp
* Added validation for the case where descriptors matrix is empty.
* Handled trivial case where there is less data than clusters.
* Deleted commented code for computing count of data per cluster since
it is done as part of the clustering process.

src/main.cpp
* Clustered binary features into a vtree using DBoW2 library.
* In function save, fixed bug when showing error message of unable to
open file for writing.
include/KMajority.h
src/KMajority.cpp
include/kmajority_index.h
src/kmajority_index.cpp
src/main.cpp
* Renamed class and compilation units.

.gitignore
* Ignored test files where descriptors are saved.
include/kmajority_index.h
src/kmajority_index.cpp
src/main.cpp
* Refactored class name.
src/main.cpp
* Changed KMajorityIndex instance name.
src/main.cpp
* Changed KMajorityIndex instance name.
include/kmajority_index.h
src/kmajority_index.cpp
* Deleted keypoints vector parameter.