An improved method based on Local Binary Pattern (LBP) was proposed to solve the problem that the representing ability of LBP is bad because only the relationship between neighbors and the central pixels are considered while the floating relationship of the gray values in the neighbor region is ignored. Firstly, each neighbor was compared clockwise with its next adjacent neighbor before threshold and an LBP-like code was generated. Secondly, the code was encoded to a decimal number named as Float-LBP (F-LBP). Thirdly, the features extracted by the F-LBP and the basic LBP operators were combined together. The experimental results show that the combination of the F-LBP and the basic LBP operators can improve the retrieval accuracy by extracting more discriminative information while reserving the local micro-texture.