title: Adjust Brightness of Image part
body: <p>I am new to Matlab and to Image Processing as well, I know we can change image brightness by following formula if my image is <code>I</code></p>
  
  <pre><code>newImg=imadjust(I, [low_in high_in], [low_out,high_out]);
  </code></pre>
  
  <p>it adjust all pixel's value of image but how can I do it on some part of image, like I detected face in the image now I want change its brightness how can I do it using <code>imadjust</code>.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I have detected area in a binary mask.</p>
  
  <p><strong>I done it please see the answer and also the reference in the answer.</strong></p>