title: How to fill color inside multiple contour line in the matlab
body: <p>I have one image that contains two contour line. I want to fill different colors inside these contour line. How to implement it? This is my code to draw two contour line</p>
  
  <pre><code>    function  FillColorContour(Img,phi1,phi2,color1,color2)
          imagesc(uint8(Img),[0 255]),colormap(gray),axis off;axis equal,title('FillColorContour')
          hold on,[c,h1] = contour(phi1,[0 0],'r','linewidth',1); hold off
          hold on,[c,h2] = contour(phi2,[0 0],'r','linewidth',1); hold off
      end
  </code></pre>
  
  <p>To using it. I will call by a command:</p>
  
  <pre><code>        Img=imread('peppers.png');
          [Height Wide] = size(Img);
          [xx yy] = meshgrid(1:Wide,1:Height);
          phi1 = (sqrt(((xx - 60).^2 + (yy - 100).^2 )) - 15);
          phi2 = (sqrt(((xx - 100).^2 + (yy - 150).^2 )) - 15);
  
          FillColorContour(Img,phi1,phi2,'r','b') %Assume'r' is red, 'b' is blue
  </code></pre>
  
  <p>This is before <a href="https://www.dropbox.com/s/ll4npg3cmturt4c/contourex.PNG" rel="nofollow">https://www.dropbox.com/s/ll4npg3cmturt4c/contourex.PNG</a>
  And this is after run <a href="https://www.dropbox.com/s/pqi4rxluxfegxhn/contourexfill.png" rel="nofollow">https://www.dropbox.com/s/pqi4rxluxfegxhn/contourexfill.png</a></p>