I may have mixed up that tutorial with this one (which shows deblur... just replace deblur with derep/clustering).