Identification of roofs perimeter from aerial and satellite images