Quality assessment of tone-mapped images based on sparse representation