Straighten image

バージョン 1.4.0.0 (5.34 KB) 作成者: Jan Motl
The function finds the document orientation.
ダウンロード: 2K
更新 2013/4/14

ライセンスの表示

The function is useful for automatic image straightening.

Three different approaches how to find the image orientation were implemented: Fourier transform, Hough transform and region properties.

The principle of using Fourier transformation for orientation detection is well described at: http://homepages.inf.ed.ac.uk/rbf/HIPR2/fourier.htm

Hough transformation finds lines in the picture. The description of Hough transformation is at: http://homepages.inf.ed.ac.uk/rbf/HIPR2/hough.htm

In a similar problem, horizon detection, only the longest line determines the image orientation: http://www.ijceronline.com/papers/Vol3_issue3/AK03202260233.pdf

However, in text orientation detection it is beneficial to consider all lines' direction to improve signal-to-noise ratio. This late approach is implemented.

Finally region properties binarizes the image and then uses REGIONPROPS from Image Processing Toolbox to calculate blob's orientation.

引用

Jan Motl (2026). Straighten image (https://jp.mathworks.com/matlabcentral/fileexchange/40239-straighten-image), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R13
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersImage Filtering and Enhancement についてさらに検索
謝辞

ヒントを与えたファイル: Electrocardiograph Paper Digitizer, Optimizer and Reader

バージョン 公開済み リリース ノート
1.4.0.0

Improved text description. Added blob detection.

1.1.0.0

Added Fast Fourier Transform.

1.0.0.0