1. An image processing apparatus comprising: an extracting unit that extracts pixel blocks from image data; a representative-image generating unit that generates representative images from the pixel blocks extracted by the extracting unit, based on a similarity between the pixel blocks; and a vector converting unit that converts the representative images generated by the representative-image generating unit into vector information.