="HTML/matlabPyrTools_13.png" alt=""> 
<img vspace="5" hspace="5" src="HTML/matlabPyrTools_14.png" alt=""> 
<h2>histogram Modification/matching:<a name="10"></a></h2><pre class="codeinput">[N,X] = histo(im, 150);
[mn, mx] = range2(im);
matched = histoMatch(rand(size(im)), N, X);
showIm(im + sqrt(-1)*matched);
[Nm,Xm] = histo(matched,150);
nextFig(2,1);
  subplot(1,2,1); plot(X,N); axis([mn mx 0 max(N)]);
  subplot(1,2,2);  plot(Xm,Nm); axis([mn mx 0 max(N)]);
nextFig(2,-1);
</pre>
<img vspace="5" hspace="5"