Spatially resolved NIRS involves acquisition of an NIR spectrum for each pixel of a micro ormacroscopic image. Chemometric analysis determines which parts of the spectra contain discriminate information for a given parameter and a 2D representation at the chosen wavelength provides contrasted images according to the target parameter.