Optical scan of the deposits