A method and system for analysis of objects