title: how to reconstruct the image from histogram in matlab
body: <p>The following code convert the image into histogram, but now i want to reconstruct the image from the histogram. how can i do it?</p>
  
  <pre><code>a = imread('picture.jpg');
  subplot(2,2,1);
  image(a);
  
  c=rgb2gray(a);
  subplot(2,2,2);
  imhist(c);
  </code></pre>