Vector quantization and fuzzy ranks for image reconstruction