title: How to eliminate the noise after sobel filtering?
body: <p>My question is simple. I did Sobel filtering to the median-filtered gray image. The sobel-filtered image is </p>
  
  <p><img src="https://i.stack.imgur.com/iUB3O.jpg" alt="a rectangular object in a textured-floor]![a rectangular object in a textured-floor"></p>
  
  <p>The rectangular object is of my interest. I am trying to extract it from the image.</p>
  
  <p>As you can see, along with the object, there are more noises <strong>due to the texture of the floor</strong>. Hence, the edge image is as below (with more false edges)</p>
  
  <p><img src="https://i.stack.imgur.com/IYHQY.jpg" alt="enter image description here"></p>
  
  <p>How to eliminate the noise after sobel filtering ? Or How do I overcome this hurdle?</p>
  
  <p>Your suggestions or guidance will help me go a long way in understanding image processing and its challenges.</p>
  
  <p>Thank you</p>