Bag Of Visual Words 三大步

来源:互联网 发布:java全局map 编辑:程序博客网 时间:2024/06/04 22:13

第一步:Feature detection

In computer vision and image processing the concept of feature detection refers to methods that aim at computing abstractions of image information and making local decisions at every image point whether there is an image feature of a given type at that point or not. The resulting features will be subsets of the image domain, often in the form of isolated points, continuous curves or connected regions.

Common feature detectors and their classification:

Feature detectorEdgeCornerBlobCannyX  SobelX  Harris & Stephens / PlesseyXX SUSANXX Shi & Tomasi X Level curve curvature X FAST XXLaplacian of Gaussian XXDifference of Gaussians XXDeterminant of Hessian XXMSER  XPCBR  XGrey-level blobs  X

第二步:feature description

After feature detection, each image is abstracted by several local patches. Feature representation methods deal with how to represent the patches as numerical vectors. These vectors are called feature descriptors. A good descriptor should have the ability to handle intensity, rotation, scale and affine variations to some extent. One of the most famous descriptors is Scale-invariant feature transform (SIFT).SIFT converts each patch to 128-dimensional vector. After this step, each image is a collection of vectors of the same dimension (128 for SIFT), where the order of different vectors is of no importance.


第三步:Codebook generation

The final step for the BoW model is to convert vector represented patches to "codewords" (analogy to words in text documents), which also produces a "codebook" (analogy to a word dictionary). A codeword can be considered as a representative of several similar patches. One simple method is performing k-means clustering over all the vectors.[5] Codewords are then defined as the centers of the learned clusters. The number of the clusters is the codebook size (analogy to the size of the word dictionary).

Thus, each patch in an image is mapped to a certain codeword through the clustering process and the image can be represented by the histogram of the codewords.





0 0
原创粉丝点击