Info
此问题已关闭。 请重新打开它进行编辑或回答。
Create Sharp squares where there were filled with Imfill
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have barcode that I am creating via edge detect and imfill create the image below. Is there a way to convert the created rectangles into ones with nice sharp edges? I also wonder if its possible to correct the spacing. This is a Code-39 barcode so there is only small and large spacing that should be equivalent in size of the small and large bars present?
Thank you
Andrew
![barcode edge detect.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227358/barcode%20edge%20detect.jpeg)
1 个评论
Julie
2019-7-4
While you could do this, it will probably not be accurate enough to read as a barcode, you should try to clean up the image more before using edge detection.
If you still want to, I would locate the objects using bwpropfilt then use the positions as well as the major/minor axis to draw rectancles on a new blank image.
回答(1 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!