Fixed superpixel segmentation. Breaks on defined residual error value. Writes descriptors to file.