spectral seeds: add resetCodebook so that generateCodebook can be called multiple times