How to skew the line which is in the image?

2 views (last 30 days)
i have this slant line to appear straight!how do i achieve this? Please help me.Thank you

Accepted Answer

Image Analyst
Image Analyst on 19 Dec 2015
See my attached demo where I use the radon transform to find the mean angle of an image by looking for the maximum projection value and then use imrotate() to rotate the image.
  6 Comments
oza san
oza san on 10 Apr 2017
Dear Sir it works fine when the number of the text line is only one but failed when the number of text lines is more than one!!!what can i do to handle it?
Image Analyst
Image Analyst on 10 Apr 2017
Extract one line at a time and then do it.

Sign in to comment.

More Answers (0)

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!