straighten curved Image

2 次查看(过去 30 天)
Dipak
Dipak 2011-6-21
Is there any way to straighten curved or waved liked image in matlab.
I am capturing image of paper from my webcam. The image get curved or wave kind of if the paper is hold by person or due to wind effect.
I wanted to straighten curved Image. Can any one help me?

回答(1 个)

Wolfgang Schwanghart
This is not trivial and I think you should show what you have done so far. If you haven't really started yet, you may want to look at this video where a similar problem is solved with cp2tform
doc cp2tform
Hope this helps.
  2 个评论
Dipak
Dipak 2011-6-22
Hi Wolfgang,
Thanks for reply,
Hi Wolfgang
I wanted to just compare the snapshot which is taken through webcam with the one fixed template image and the snapshot image automatically registers according to fixed template.
the one thing is common in both the image is rectangular outer border on both the image.
and this border helps me in image processing of the snapshot.
for that
1) I am capturing the image from webcam
2) use regionprops and get bounding box find topleft / topRight/ BottomLeft/ bottomRight corners of bounding box
3) use this four points with template base points and give it to cp2tform and does transformation
Wolfgang, I am facing two problem with this scenario first is it works fine if the image is right deskew so each time it get rectangle topright corner as bounding box topright corner
but if the image is right side deskew it take rectangles topright corner as bounding topleft box corner.
second is image straighten if paper is tiled or hold by a person.
Wolfgang can u help me in this context?
Wolfgang Schwanghart
Hi Dipak, I am sorry to say that I cannot help further. As you can see from my profile, I am a geographer and not image processing specialist, although I have various interest in this subject.

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by