title: How to use sobel operator in C# using emgu cv?
body: <p>i am feeling difficulty in applying sobel operator in c# using emguCv.
  your kind comments would be quite valuable help for me in this regard.</p>
  
  <p>here is the code::</p>
  
  <pre><code>Image&lt;Bgr, Byte&gt; imOriginal;
  Image&lt;Bgr, Byte&gt; imgProcessed;
  Image&lt;Gray, Byte&gt; imgProcessed1;
  Image&lt;Gray, Byte&gt; imEdge;
  
  
  
  imgProcessed = imgProcessed.SmoothGaussian(9);
  imgProcessed1= imgProcessed.Convert&lt;Gray,byte&gt;();
  imEdge = (imgProcessed1.Sobel(1, 0, 3));
  </code></pre>
  
  <p>Error   2   </p>
  
  <blockquote>
    <p>Cannot implicitly convert type
    '<code>Emgu.CV.Image&lt;emgu.cv.structure.gray,float&gt;</code>' to
    '<code>Emgu.CV.Image&lt;emgu.cv.structure.gray,byte&gt;</code></p>
  </blockquote>
  
  <p>thanx in advance.</p>
  
  <p>regards 
  baltee</p>