1. A method of determining a presence or absence of a material from a hyperspectral image, the method comprising: receiving a first spectral signature corresponding to a region of interest in the hyperspectral image; creating a model search space including one or more model spectral signatures based on one or more spectral signatures in a library, wherein the one or more model spectral signatures approximate the first spectral signature; calculating a cumulative probability associated with a presence or absence of a material within the first spectral signature, based on the first spectral signature and similarity probabilities of the one or more model spectral signatures; and determining the presence or absence of the material in the region of interest based on the cumulative probability.