How to fill missing pixels so that the line is connected?
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Mahmoud
 el 22 de Feb. de 2015
  
    
    
    
    
    Comentada: Mahmoud
 el 23 de Feb. de 2015
            I would like to connect the two separated curves into one. So how can I fill the missing pixels?
Also, after using the Hough transform in detecting lines, how can I set those lines detected to zero in a binary image?
Any help

0 comentarios
Respuesta aceptada
  Image Analyst
      
      
 el 23 de Feb. de 2015
        
      Editada: Image Analyst
      
      
 el 23 de Feb. de 2015
  
      You can improve your segmentation algorithm. Or else just extract the two largest blobs with my attached utility. Then use find() to find the two points that are closest and use imline() to connect them by drawing a line. Demos for everything is attached. Feel free to adapt them.
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

