How to show only straight line in binary?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
muhammad ismail
el 20 de En. de 2015
Comentada: muhammad ismail
el 21 de En. de 2015
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146863/image.jpeg)
Please help me to solve this problem. I just need straight line in the midle as white.
2 comentarios
Respuesta aceptada
Image Analyst
el 21 de En. de 2015
Several ways. Since the sample seems to be centered, simply crop your image with imcrop.
Another way is to use the whole image but get rid of blobs touching the border with imclearborder() and get rid of small remaining specs with bwareaopen().
Another way is to do a background correction so you don't get that junk in the bottom in the first place. To do that you need to divide your image by an image of a uniform gray sheet.
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!