FIGS. 8A and 8B are a flow chart illustrating conceptually a method of the present invention for deciding by computation whether the reflection spectrum of an unknown fabric (or other diffusely-reflecting material) matches that of any known reference fabrics in order to identify the unknown fabric.