Structural optimization for accurate characterization of urban areas in hyperspectral datasets