Content-Based Image Retrieval (CBIR) is a way of retrieving images from a database. In CBIR a user specifies a query image and gets the images in the database similar to the query image. To find the most similar images CBIR compares the content of the input image to the database images.