straighten curved Image

3 views (last 30 days)
Dipak
Dipak on 21 Jun 2011
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?

Answers (1)

Wolfgang Schwanghart
Wolfgang Schwanghart on 21 Jun 2011
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 Comments
Dipak
Dipak on 22 Jun 2011
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
Wolfgang Schwanghart on 22 Jun 2011
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.

Sign in to comment.

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!