title: What's the difference between HSV and grayscale intensities?
body: <p>I'm doing some research on image processing using MATLAB and I've created grayscale intensity images in two different ways using <code>rgb2gray</code> and <code>rgb2hsv</code> like so:</p>
  
  <pre><code>read_image = imread(handles.myImage);
  bc_gambar2 = imresize(read_image,[280 540]); 
  g = rgb2gray(bc_gambar2);  % First intensity image
  g2 = rgb2hsv(bc_gambar2); 
  g = g2(:,:,3);             % Second intensity image
  </code></pre>
  
  <p>The result seems better using <code>rgb2hsv</code> and indexing than using <code>rgb2gray</code>. Can anybody tell me what the difference is and why it's happening?</p>
  
  <p>Here's a sample image I'm using (if needed):</p>
  
  <p><a href="https://i.stack.imgur.com/N7y2d.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N7y2d.jpg" alt="example manuscript image"></a></p>