how can I deskew this image ?

3 ビュー (過去 30 日間)
Israa Alqaraleh
Israa Alqaraleh 2017 年 6 月 26 日
回答済み: Shlok 2024 年 9 月 16 日

回答 (1 件)

Shlok
Shlok 2024 年 9 月 16 日
Hi Israa,
To de-skew the given image in MATLAB, you can start by loading the image and then converting it to grayscale, using “rgb2gray” function, if needed. You might then apply an edge detection technique to highlight key features. This can be done using edge function.
From there, a transformation approach, such as the Hough Transform, can be used to identify angles or lines that will help determine the skew. To learn more about the “hough” function and how to use it, you can check the following documentation link:
Once you have calculated the skew angle, you can rotate the image to adjust and correct it using theimrotate” function. This will help you obtain a de-skewed image. You can make further fine-tuning adjustments as needed to achieve the desired result.
For more information about the functions mentioned above, you can refer to the following documentation links:
Hope this helps.

Community Treasure Hunt

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

Start Hunting!

Translated by