A device and method for capturing images of a specific part of an anatomical structure using a series of images, wherein an image is taken of the anatomical structure and is compared to a database of information is order to determine and optimize the imaging conditions used for taken subsequent images of the specific part.