1. A method comprising: accessing header data from a multi-resolution codestream of compressed data of a first image; deriving one or more retrieval attributes from the header information; and performing image analysis between the first image and a second image based on the one or more retrieval attributes.