Matlab edge detection - of text!
3 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149864/image.png)
after a lot of tryouts with different filters i have yet to accomplish getting a black and white image of the picture above.
I would like to have the text as readable as possible but using the 'log' filter is just not enough mixed with imadjust and midfilters
while the others doesnt help at all ,
could use a suggestion , thanks
1 件のコメント
John Petersen
2012 年 11 月 29 日
The image looks very clean and not too noisy. Can you try dividing the image into squares and taking the mean of the square. Reassign pixels that are a threshold above the mean to black and below a threshold from the mean to white. You would have to decide the size of square and threshold level.
回答 (1 件)
Image Analyst
2012 年 11 月 29 日
You might want to try getting rid of the background gradient and maximize contrast by using CLAHE (contrast limited, locally adaptive histogram equalization), accomplished by the function "adapthisteq()" in the Image Processing Toolbox.
5 件のコメント
Image Analyst
2012 年 11 月 30 日
Why is the image so bad in the first place? Can't you obtain better images with more uniform illumination? How about using a scanner, or a nice light booth with flood illumination and the inside painted all white?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!