Measurement orientation compensation and comparison of transmission spectroscopy for online detection of moldy apple core