how can I deskew this image ?

3 vues (au cours des 30 derniers jours)
Israa Alqaraleh
Israa Alqaraleh le 26 Juin 2017
Réponse apportée : Shlok le 16 Sep 2024

Réponses (1)

Shlok
Shlok le 16 Sep 2024
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