Is there a way to detect quality of the images in terms of histograms or any other feature to discard or mark somehow images out of focus, too dark, saturated, etc?
For all of our analysis we typically include MeasureImageIntensity and MeasureImageSaturationBlur. These provide nice indicators of images which are no good, such as the occasional hair popping up in a large screen. Another good indicator of a poor image is the threshold used for Identify modules. This is stored with the Image measurements and typically if this is way off the norm, the image is questionable.