Figure illustrates the workflow of the automatic band gap computation procedure. First, the hyperspectral reflectance, R(λ), is acquired from the vision segmentation output, Φ, for each sample. The median R(λ) for all ( X, Y ) per sample is taken to minimize the influence of outlier pixels and edge effects on the reflectance. Then, reflectance is transformed into a Tauc curve for each sample using the following equation :