Content-Based Image Retrieval (CBIR) systems help users to retrieve relevant images based on their contents such as color and texture. In this paper, a study has been made on the application of Gabor Wavelet Transform for texture classification at different values of the number of scales(S) and the number of orientations (K). Texture features are found by calculating the mean and variation of Gabor filtered image. The image indexing and retrieval are conducted on natural images. Based on experiments, Gabor wavelet at five scales of frequency and four orientations gives better performance than the other commonly used scales and orientations i.e., three scales and four orientations, three scales and six orientations, four scales and five orientations, four scales and six orientations and five scales and six orientations.