I need the complete code for transforming a histogram back to its image. Also I need the code for shifting histogram of an image towards right.

Answers (1)

I have never heard of that method but I do know that it is not possible to reconstruct an image from a histogram. A virtually infinite number of images could have the very same histogram - all you have to do is take an image and shuffle around the pixels, and voila! new image, same histogram.
Next you'll probably say you're trying to follow the procedure in some paper, and I'll reply by referring you to the FAQ.

Asked:

on 14 Jan 2013

Edited:

on 10 Nov 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!