How to use profile for image detection in documents
2 次查看(过去 30 天)
显示 更早的评论
Hello,I am writing Matlab code to detect images in a document (like a scanned magazine). First I divided my whole document into blocks. Now I don't know how to use morphology or profile to detect images(not histogram or text). My code and data base document are attached. Thanks.
回答(1 个)
Image Analyst
2016-1-20
编辑:Image Analyst
2016-1-20
Try thresholding for white. Then use bwareafilt() or bwareaopen() to throw out blobs smaller than a certain size. Or you can throw out non-rectangular shapes.
All that stuff in your code about dividing an image up into blocks, you can throw out. It's not appropriate.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!