Research Article

Discriminative Codebook Hashing for Supervised Video Retrieval

Algorithm 1

Discriminative codebook.
Input: the number of categories ; the number of samples per category ; code length ; maximum number of iterations ; fault tolerance rate .
Output: codebook
(1)for iteration
(2)for category
(3)  [random half coordinate]
(4)  [the rest coordinate]
(5)end
(6)if any two rows of satisfy equation (7)
(7)  break
(8)end
(9)end