extract rectangular image from scanned image
2 次查看(过去 30 天)
显示 更早的评论
I have scanned copies of currency notes from which I need to extract only the rectangular notes. Although the scanned copies have a very blank background, the note itself can be rotated or aligned correctly. I'm using matlab. how do I extract the currency part and get it aligned to the horizontal axis. I have tried using thresholding and canny/sobel edge detection to no avail. I used the below code but it works only for aligned images and not for rotated images.
<< input image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148426/image.jpeg)
output image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148428/image.jpeg)
>>
回答(2 个)
Image Analyst
2015-3-30
Did you see my answer to your prior question: http://www.mathworks.com/matlabcentral/answers/182427#comment_271921
Did you look up "registration" in the help and try any of the examples with your image?
Image Analyst
2015-3-31
I'll be traveling today and not have much time. I'm attaching another demo that uses the radon transform to do rotation. Give that a try.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175719/image.jpeg)
4 个评论
Image Analyst
2015-3-31
Then try another method. I'm getting ready to fly to Arizona today and will not have much time to help anyone.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Filter Banks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!